/* 강원교육튼튼체: 강원특별자치도교육청 (https://www.gwe.go.kr/). */
@font-face {
  font-family: "DataMoney Thumbnail";
  src: url("/blog/fonts/gangwon-edu-power.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Editable HTML thumbnails use the same layout on listings and article pages. */
.dm-html-thumb {
  --dm-thumb-accent: #22d3ee;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  background: #172033;
}
.post-thumb, .dm-html-thumb, .dm-article-thumbnail img { border-radius: 6px; }
.dm-html-thumb[data-ribbon-visible="false"] .dm-html-thumb-format { display: none; }
.dm-html-thumb[data-format="Q&A"] { --dm-thumb-accent: #ff8278; }
.dm-html-thumb[data-format="해설"] { --dm-thumb-accent: #49beff; }
.dm-html-thumb[data-format="칼럼"] { --dm-thumb-accent: #c28cff; }
.dm-html-thumb[data-format="분석"] { --dm-thumb-accent: #24ddc5; }
.dm-html-thumb[data-format="가이드"] { --dm-thumb-accent: #a8e858; }
.dm-html-thumb[data-format="도구"] { --dm-thumb-accent: #ffd044; }
.dm-html-thumb[data-format="시리즈"] { --dm-thumb-accent: #ff8fc7; }
body .dm-html-thumb img.dm-html-thumb-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.dm-html-thumb::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.59) 32%, rgba(0,0,0,.12) 59%, transparent 100%);
  pointer-events: none;
}
/* Retain the dark backdrop while adding the format color at the lower left. */
.dm-html-thumb[data-format]::after {
  background:
    radial-gradient(ellipse 78% 88% at 0% 100%,
      color-mix(in srgb, var(--dm-thumb-accent) 50%, transparent) 0%,
      color-mix(in srgb, var(--dm-thumb-accent) 32%, transparent) 36%,
      transparent 78%),
    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.59) 32%, rgba(0,0,0,.12) 59%, transparent 100%);
}
.dm-html-thumb-meta {
  --dm-thumb-side-inset: 4cqw;
  position: absolute;
  z-index: 2;
  /* The logo's transparent edge is slightly wider on the right than on top. */
  inset: calc(var(--dm-thumb-side-inset) + .08cqw) var(--dm-thumb-side-inset) auto;
  /* Match the watermark height so a taller badge cannot push the logo down. */
  height: 3.94cqw;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  font-size: max(5.5px, 4cqw);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  white-space: nowrap;
  pointer-events: none;
}
.dm-html-thumb-meta::before {
  content: "";
  /* Use the clean supplied wordmark as a white watermark. */
  width: 23.225cqw;
  flex: 0 0 23.225cqw;
  aspect-ratio: 2081 / 353;
  background: url("/blog/datamoney-english-logo-20261104.png") center / 100% auto no-repeat;
  filter: brightness(0) invert(1);
  opacity: .5;
}
.dm-html-thumb-meta > span {
  display: block;
  padding: .9cqw 1.25cqw;
  border: .12cqw solid rgba(255,255,255,.26);
  border-radius: 1cqw;
  background: rgba(10,18,30,.78);
  color: #fff;
}
.dm-html-thumb-meta > .dm-html-thumb-category { display: none; }
.dm-html-thumb-meta > .dm-html-thumb-format {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(max(5.5px, 4cqw) + 1.8cqw);
  overflow: hidden;
  transform: translateX(calc(-1 * var(--dm-thumb-side-inset)));
  /* Korean glyphs sit slightly above the font's line-box center. */
  padding: .18cqw 2cqw 0 var(--dm-thumb-side-inset);
  border: 0;
  border-radius: 0;
  line-height: 1;
  background: var(--dm-thumb-accent);
  color: #1f2937;
  box-shadow: .45cqw 0 .45cqw rgba(0,0,0,.16);
}
.dm-html-thumb-meta > .dm-html-thumb-format::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 22%;
  background: rgba(0,0,0,.09);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.dm-html-thumb-copy {
  position: absolute;
  z-index: 2;
  inset: 60% 4% 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .35cqw;
  text-align: left;
  font-family: "DataMoney Thumbnail", sans-serif;
  font-style: normal;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: .10cqw rgba(2,8,19,.9);
  text-shadow: 0 .16cqw .25cqw rgba(0,0,0,.9), 0 .3cqw .8cqw rgba(0,0,0,.65);
}
.dm-html-thumb-copy > span { display: block; font-size: calc(var(--dm-thumb-size, 9.2cqw) * .9); }
.dm-html-thumb-copy > .dm-html-thumb-series {
  position: absolute;
  left: 0;
  /* Keep the two headline lines centered independently of the series label. */
  bottom: calc(50% + var(--dm-thumb-size, 9.2cqw) * .936 + 1.8cqw);
  display: flex;
  align-items: center;
  gap: 1cqw;
  width: max-content;
  max-width: 91cqw;
  padding: .75cqw 1.15cqw .75cqw 1.1cqw;
  border-left: 1.35cqw solid var(--dm-thumb-accent);
  border-radius: .4cqw .8cqw .8cqw .4cqw;
  background: #0F172A;
  color: #F8FAFC;
  font-family: "Pretendard", sans-serif;
  font-size: 3.75cqw;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.dm-html-thumb-series-episode {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  border-left: .14cqw solid rgba(248, 250, 252, .48);
  padding: 0 0 0 1cqw;
  color: #F8FAFC;
  font-weight: 800;
}
.dm-html-thumb-line-one { color: var(--dm-thumb-accent); }
.dm-html-thumb-line-two { color: #fff; }
.dm-related-thumb.dm-html-thumb { border-radius: 8px; }
.dm-shared-sidebar .popular-list .dm-popular-thumb {
  grid-column: 2;
  grid-row: 1;
  border-radius: 8px;
}

/* The sidebar is shared by the blog home, articles, and the article preview. */
.dm-shared-sidebar {
  display: grid;
  grid-area: auto;
  align-self: start;
  position: static;
  gap: 20px;
  min-width: 0;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: #0f172a;
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  word-break: keep-all;
}
.blog-layout > .dm-shared-sidebar { grid-area: sidebar; }
.layout.dm-heading-layout > .dm-shared-sidebar { grid-area: side; }
.dm-shared-sidebar * { box-sizing: border-box; }
.dm-shared-sidebar a { color: inherit; text-decoration: none; }
.dm-shared-sidebar .home-card { padding: 22px; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 20px; box-shadow: 0 12px 40px rgba(15,23,42,.05); }
.dm-shared-sidebar .investor-test-banner { position: relative; display: block; overflow: hidden; border-radius: 20px; box-shadow: 0 12px 40px rgba(15,23,42,.05); transition: box-shadow .24s ease; }
.dm-shared-sidebar .investor-test-banner img { display: block; width: 100%; height: auto; }
.dm-shared-sidebar .dm-hall-side-card { display: grid; grid-template-columns: minmax(0, 1fr) 43%; min-height: 152px; overflow: hidden; border: 1px solid #d5e4f4; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.05); }
.dm-shared-sidebar .dm-hall-side-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 15px 16px; }
.dm-shared-sidebar .dm-hall-side-label { color: #456485; font-size: 11px; font-weight: 800; line-height: 1.3; }
.dm-shared-sidebar .dm-hall-side-beta { margin-left: 3px; color: #7188a3; font-size: 10px; font-weight: 500; }
.dm-shared-sidebar .dm-hall-side-copy strong { display: block; margin-top: 6px; color: #142e4d; font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.dm-shared-sidebar .dm-hall-side-action { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.4; }
@media (min-width: 901px) and (max-width: 1100px) {
  .dm-shared-sidebar .dm-hall-side-card { grid-template-columns: minmax(0, 1fr) 35%; }
}
.dm-shared-sidebar .dm-hall-side-image { position: relative; min-width: 0; overflow: hidden; }
.dm-shared-sidebar .dm-hall-side-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dm-shared-sidebar .dm-hall-side-card:hover .dm-hall-side-action { background: #1d4ed8; color: #fff; }
.dm-shared-sidebar .dm-hall-side-card:focus-visible { outline: 3px solid #f0a33c; outline-offset: 3px; }
html[data-dm-theme="dark"] .dm-shared-sidebar .dm-hall-side-card { border-color: #d5e4f4; background: #fff; }
html[data-dm-theme="dark"] .dm-shared-sidebar .dm-hall-side-label { color: #456485; }
html[data-dm-theme="dark"] .dm-shared-sidebar .dm-hall-side-beta { color: #7188a3; }
html[data-dm-theme="dark"] .dm-shared-sidebar .dm-hall-side-copy strong { color: #142e4d; }
html[data-dm-theme="dark"] .dm-shared-sidebar .dm-hall-side-action { color: #fff; }
.dm-site-header .dm-mobile-investor-banner { position: relative; overflow: hidden; border-radius: 12px; }
.dm-shared-sidebar .investor-test-banner::after,
.dm-site-header .dm-mobile-investor-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.06) 38%, rgba(255,255,255,.44) 50%, rgba(255,255,255,.06) 62%, transparent 75%);
  pointer-events: none;
  transform: translateX(-140%);
  animation: dm-investor-shine 7s ease-in-out infinite;
}
@keyframes dm-investor-shine {
  0%, 4% { transform: translateX(-140%); }
  /* 1.5-second sweep within the existing 7-second loop. */
  25.42857%, 100% { transform: translateX(140%); }
}
@media (hover: hover) {
  .dm-shared-sidebar .investor-test-banner:hover { box-shadow: 0 15px 40px rgba(15,23,42,.14); }
}
@media (prefers-reduced-motion: reduce) {
  .dm-shared-sidebar .investor-test-banner { transition: none; }
  .dm-shared-sidebar .investor-test-banner::after,
  .dm-site-header .dm-mobile-investor-banner::after { animation: none; }
}
.dm-investor-embed { min-width: 0; padding: 24px; border: 1px solid #e3e8ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.05); }
.blog-layout > .dm-investor-embed { grid-area: latest; }
.dm-heading-layout > .dm-investor-embed { grid-area: paper; }
[data-investor-original-hidden] { display: none !important; }
.dm-investor-embed-top { margin-bottom: 20px; }
.dm-investor-embed-top button { padding: 8px 12px; border: 1px solid #dce5f0; border-radius: 10px; background: #f8fafc; color: #334155; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dm-investor-embed-top button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.dm-investor-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
@media (max-width: 560px) { .dm-investor-embed { padding: 18px; border-radius: 16px; } }
.dm-shared-sidebar .home-card h2 { margin: 0; padding: 0; color: #111827; font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; border: 0; }
.dm-shared-sidebar .card-note { margin: 8px 0 16px; color: #64748b; font-size: 13px; font-weight: 400; line-height: 1.6; }
.dm-shared-sidebar .newsletter-disclosure > summary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; background: #2563eb; color: #fff; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.dm-shared-sidebar .newsletter-disclosure > summary::-webkit-details-marker { display: none; }
.dm-shared-sidebar .newsletter-disclosure > summary:hover { background: #1d4ed8; }
.dm-shared-sidebar .newsletter-disclosure > summary:focus-visible { outline: 3px solid #f0a33c; outline-offset: 2px; }
.dm-shared-sidebar .newsletter-close-label, .dm-shared-sidebar .newsletter-disclosure[open] .newsletter-open-label { display: none; }
.dm-shared-sidebar .newsletter-disclosure[open] .newsletter-close-label { display: inline; }
.dm-shared-sidebar .newsletter-disclosure[open] > summary { justify-content: flex-end; min-height: 0; margin-bottom: 12px; padding: 0; background: transparent; color: #64748b; font-size: 13px; }
.dm-shared-sidebar .newsletter-disclosure[open] > summary:hover { text-decoration: underline; }
html[data-dm-theme="dark"] .dm-shared-sidebar .newsletter-disclosure[open] > summary { color: #b6c4d7; }
.dm-shared-sidebar .newsletter-form { display: grid; gap: 10px; }
.dm-shared-sidebar .newsletter-email-label { color: #334155; font-size: 13px; font-weight: 700; }
.dm-shared-sidebar .newsletter-form input[type="email"] { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; font-size: 14px; }
.dm-shared-sidebar .newsletter-form input[type="email"]::placeholder { color: #78889c; }
.dm-shared-sidebar .newsletter-consent { display: flex; align-items: flex-start; gap: 8px; color: #334155; font-size: 13px; line-height: 1.5; }
.dm-shared-sidebar .newsletter-consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #2563eb; }
.dm-shared-sidebar .newsletter-form button { width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dm-shared-sidebar .newsletter-form button:hover { background: #1d4ed8; }
.dm-shared-sidebar .newsletter-form button:disabled { opacity: .65; cursor: wait; }
.dm-shared-sidebar .newsletter-form :is(input, button):focus-visible { outline: 3px solid #f0a33c; outline-offset: 2px; }
.dm-shared-sidebar .newsletter-note, .dm-shared-sidebar .newsletter-privacy, .dm-shared-sidebar .newsletter-status { margin: 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.dm-shared-sidebar .newsletter-privacy summary { cursor: pointer; }
.dm-shared-sidebar .newsletter-privacy p { margin: 8px 0 0; color: inherit; font-size: inherit; line-height: inherit; }
.dm-shared-sidebar .newsletter-privacy a { color: #1d4ed8; text-decoration: underline; }
.dm-shared-sidebar .newsletter-status:empty { display: none; }
html[data-dm-theme="dark"] .dm-shared-sidebar .newsletter-form :is(.newsletter-email-label, .newsletter-consent) { color: #dbe7f7; }
html[data-dm-theme="dark"] .dm-shared-sidebar .newsletter-form input[type="email"] { border-color: #627894; background: #162338; color: #f2f6fd; }
html[data-dm-theme="dark"] .dm-shared-sidebar .newsletter-form input[type="email"]::placeholder { color: #b6c4d7; }
html[data-dm-theme="dark"] .dm-shared-sidebar .newsletter-form :is(.newsletter-note, .newsletter-privacy, .newsletter-status) { color: #b6c4d7; }
html[data-dm-theme="dark"] .dm-shared-sidebar .newsletter-privacy a { color: #9fc3ff; }
.dm-shared-sidebar .tool-links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.dm-shared-sidebar .tool-links li { margin: 0; padding: 0; }
.dm-shared-sidebar .tool-links a { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid rgba(15,23,42,.08); border-radius: 10px; background: #f8fafc; color: #1e293b; font-size: 14px; font-weight: 600; line-height: 1.35; }
.dm-shared-sidebar .all-tools { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #2563eb; color: #fff; font-size: 14px; font-weight: 700; }
.dm-shared-sidebar .ai-traffic-card[hidden] { display: none; }
.dm-shared-sidebar .ai-traffic-number { margin: 15px 0 2px; color: #1d4ed8; }
.dm-shared-sidebar .ai-traffic-number strong { font-size: 28px; letter-spacing: -.03em; }
.dm-shared-sidebar .ai-traffic-number span { margin-left: 5px; color: #334155; font-size: 14px; font-weight: 600; }
.dm-shared-sidebar .ai-traffic-period { margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.dm-shared-sidebar .ai-traffic-info { margin-top: 14px; color: #64748b; font-size: 12px; line-height: 1.55; }
.dm-shared-sidebar .ai-traffic-info summary { cursor: pointer; }
.dm-shared-sidebar .ai-traffic-info p { margin: 8px 0 0; }
.dm-shared-sidebar .popular-card #popular-posts-note[hidden] + #popular-posts { margin-top: 16px; }
.dm-shared-sidebar .popular-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 0; background: transparent; counter-reset: popular-rank; }
.dm-shared-sidebar .popular-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: start; margin: 0; padding: 14px 0; border-bottom: 1px solid #e9edf3; counter-increment: popular-rank; }
.dm-shared-sidebar .popular-list li:first-child { padding-top: 0; }
.dm-shared-sidebar .popular-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.dm-shared-sidebar .popular-list li::before { content: counter(popular-rank); color: #0f172a; font-size: 16px; font-weight: 800; line-height: 1.4; }
.dm-shared-sidebar .popular-list a { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; align-items: start; min-width: 0; }
.dm-shared-sidebar .popular-list a.no-thumbnail { grid-template-columns: minmax(0, 1fr); }
.dm-shared-sidebar .popular-list img { grid-column: 2; grid-row: 1; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #f4f7fb; }
.dm-shared-sidebar .popular-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dm-shared-sidebar .popular-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; margin: 0; color: #0f172a; font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.dm-shared-sidebar .popular-date { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.4; }
.dm-shared-sidebar .popular-empty { margin: 0; padding: 0; border: 0; background: transparent; color: #475569; font-size: 13px; line-height: 1.6; }
.dm-shared-sidebar .tags-card[hidden] { display: none; }
.dm-shared-sidebar .tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dm-shared-sidebar .tag-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid #dce7f8; border-radius: 999px; background: #f4f7fd; color: #244e96; font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.dm-shared-sidebar .tag-chip:hover { border-color: #b7cef3; background: #eaf2ff; color: #174592; }
.dm-shared-sidebar .tag-count { display: inline-flex; align-self: stretch; align-items: center; justify-content: center; color: #6680a9; font-size: 11px; font-weight: 600; line-height: 1; }
.dm-shared-sidebar .quote-panel { padding: 18px; }
.dm-shared-sidebar .quote-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-shared-sidebar .quote-heading button { display: inline-flex; justify-content: center; align-items: center; flex: none; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid #dbe7fa; border-radius: 10px; background: #f1f5fd; color: #2856b8; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.dm-shared-sidebar .quote-heading button:hover { background: #e7efff; }
.dm-shared-sidebar .quote-heading button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.dm-shared-sidebar .quote-card { margin-top: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.dm-shared-sidebar .quote-mark { display: block; height: 27px; color: #2563eb; font-family: Georgia,serif; font-size: 40px; font-weight: 700; line-height: 1; }
.dm-shared-sidebar .quote-current { display: flow-root; }
.dm-shared-sidebar .quote-card blockquote { margin: 4px 0 12px; padding: 0; border: 0; background: transparent; color: #0f172a; font-size: 17px; font-weight: 700; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.dm-shared-sidebar .quote-original { margin: 0 0 8px; color: #64748b; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.dm-shared-sidebar .quote-review-note { margin: -3px 0 6px; color: #64748b; font-size: 11px; line-height: 1.4; }
.dm-shared-sidebar .quote-review-note[hidden] { display: none; }
.dm-shared-sidebar .quote-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #334155; font-size: 13px; font-weight: 700; }
.dm-shared-sidebar .quote-meta .quote-translation-source { color: #64748b; font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.dm-shared-sidebar .quote-translation-source[hidden] { display: none; }
.dm-shared-sidebar .dm-channel-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.dm-shared-sidebar .dm-channel-links :is(a, button) { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(15,23,42,.08); border-radius: 10px; background: #f8fafc; color: #1e293b; font: inherit; font-size: 14px; font-weight: 600; text-align: left; }
.dm-shared-sidebar .dm-channel-links a:hover { background: #eff6ff; }
.dm-shared-sidebar .dm-channel-youtube { display: block; flex: none; width: 22px; height: 22px; color: #f03; }
.dm-shared-sidebar .dm-channel-icon { display: grid; place-items: center; flex: none; width: 22px; height: 22px; font-size: 20px; font-weight: 800; line-height: 1; }
.dm-shared-sidebar .dm-channel-instagram { color: #d13f87; }
.dm-shared-sidebar .dm-channel-threads, .dm-shared-sidebar .dm-channel-x, .dm-shared-sidebar .dm-channel-tiktok { color: #111827; }
.dm-shared-sidebar .dm-channel-naver { color: #03c75a; font-size: 19px; }
.dm-shared-sidebar .dm-channel-kin { display: block; flex: none; width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #fff; }
.dm-shared-sidebar .dm-channel-links button:disabled { opacity: 1; cursor: default; }
.dm-shared-sidebar .dm-channel-arrow { margin-left: auto; color: #64748b; font-size: 14px; }
.dm-shared-sidebar a:focus-visible, .dm-shared-sidebar button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

/* Older article layouts without a right column get the same 2:1 shell. */
.dm-sidebar-shell { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 20px; align-items: start; }
body > .dm-sidebar-shell { width: min(1120px, calc(100% - 28px)); margin: 12px auto 20px; }
.dm-sidebar-shell > :is(article, .dm-article-page) { min-width: 0; width: auto; max-width: none; margin: 0; }
body.dm-dark-theme .dm-sidebar-shell > main.dm-article-page { margin: 0; }
.dm-sidebar-shell .dm-article-page .content-grid { display: block; }
.dm-sidebar-shell .dm-article-page .hero-grid { grid-template-columns: minmax(0, 1fr); }
/* Keep the article and home cards at the same starting height. */
body:has(.dm-article-heading) > .wrap { margin-top: 0; padding-top: 18px; }
body.dm-header-flush > .wrap > .dm-site-header { margin-top: 0; border-bottom: 0; }
body:has(.dm-article-heading) > .wrap > :is(.article-shell, .dm-heading-layout, .dm-sidebar-shell) { margin-top: 18px; }
body:has(.dm-article-heading, article.dm-post) > .dm-sidebar-shell { margin-top: 18px; }
.dm-original-sidebar { margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid #e3e8ef; }
.dm-original-sidebar > summary { color: #526581; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.dm-original-sidebar > aside { position: static; width: auto; max-width: none; max-height: none; overflow: visible; margin: 16px 0 0; }
@media screen and (min-width: 901px) {
  body:has(.dm-article-heading, article.dm-post) .dm-shared-sidebar[data-dm-sticky-ready] {
    position: sticky;
    top: min(20px, calc(100vh - var(--dm-sidebar-height) - 20px));
  }
}
@media (max-width: 900px) {
  .dm-sidebar-shell { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media screen and (min-width: 600px) and (max-width: 900px) {
  .dm-shared-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .dm-shared-sidebar > * { min-width: 0; }
  .dm-shared-sidebar .dm-channel-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dm-shared-sidebar .investor-test-banner { display: none; }
  body:has(.dm-shared-sidebar) .dm-site-header { padding-bottom: 0; }
  /* A legacy sticky-header backdrop otherwise stretches down the mobile viewport. */
  body.dm-header-flush .dm-site-header { background: transparent; }
  body.dm-header-flush .dm-site-header::before { content: none; }
  body:has(.dm-shared-sidebar) .blog-layout { margin-top: 16px; }
  body:has(.dm-article-heading) > .wrap > :is(.article-shell, .dm-heading-layout, .dm-sidebar-shell) { margin-top: 16px; }
  body:has(.dm-article-heading, article.dm-post) > .dm-sidebar-shell { margin-top: 16px; }
}
/* Let the mobile blog read as one white surface from edge to edge. */
@media screen and (max-width: 560px) {
  :root { --dm-mobile-section-divider: #edf0f4; }
  :root[data-dm-theme="dark"] { --dm-mobile-section-divider: #303030; }
  html[data-dm-theme="dark"] .dm-shared-sidebar {
    position: relative;
    isolation: isolate;
  }
  html[data-dm-theme="dark"] .dm-shared-sidebar::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--dm-dark-surface);
    pointer-events: none;
  }
  body:has(.dm-shared-sidebar) { background: #fff; }
  html[data-dm-theme="light"] body.dm-dark-theme:has(.dm-shared-sidebar) { background: #fff !important; }
  body:has(.dm-shared-sidebar) :is(
    .latest-column,
    .article-shell > .article,
    .dm-heading-layout > .paper,
    .dm-sidebar-shell > .dm-article-page,
    .dm-sidebar-shell > article,
    .dm-shared-sidebar .home-card
  ) { background: #fff; border: 0; border-radius: 0; box-shadow: none; }

  /* Align mobile section content with the shared header banner. */
  body:has(.dm-shared-sidebar) :is(
    .latest-heading,
    .blog-layout .latest-posts .post-card,
    .dm-shared-sidebar > .home-card,
    .dm-investor-embed,
    .dm-sidebar-shell > article,
    .dm-sidebar-shell > .dm-article-page,
    .article-shell > .article,
    .dm-heading-layout > .paper
  ) { padding-inline: 0 !important; }
  body:has(.dm-shared-sidebar) .dm-shared-sidebar > .home-card:not(.quote-panel) {
    padding-block: 12px;
  }

  /* Keep the investor test flush with the surrounding mobile page. */
  body :is(.dm-investor-embed, .tools-content:has(.dm-tool-embed iframe[src^="/tools/investor-type/"])) {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Full-width section dividers keep stacked mobile areas easy to distinguish. */
  body:has(.dm-shared-sidebar) :is(
    .blog-layout > .latest-column,
    .article-shell > .article,
    .dm-heading-layout > .paper,
    .dm-sidebar-shell > .dm-article-page,
    .dm-sidebar-shell > article,
    .dm-sidebar-shell > .tools-content,
    .dm-investor-embed,
    .dm-shared-sidebar > .home-card
  ) { position: relative; }
  body:has(.dm-shared-sidebar) :is(
    .blog-layout > .latest-column,
    .article-shell > .article,
    .dm-heading-layout > .paper,
    .dm-sidebar-shell > .dm-article-page,
    .dm-sidebar-shell > article,
    .dm-sidebar-shell > .tools-content,
    .dm-investor-embed,
    .dm-shared-sidebar > .home-card
  )::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 100vw;
    height: 8px;
    transform: translateX(-50%);
    background: var(--dm-mobile-section-divider);
    pointer-events: none;
  }
}
@media (max-width: 380px) {
  .dm-shared-sidebar .popular-list a { grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; }
  .dm-shared-sidebar .popular-list a.no-thumbnail { grid-template-columns: minmax(0, 1fr); }
  .dm-shared-sidebar .dm-channel-links :is(a, button) { gap: 6px; padding: 9px 8px; font-size: 12px; }
  .dm-shared-sidebar .dm-channel-arrow { display: none; }
}
@media print {
  .dm-shared-sidebar, .dm-original-sidebar { display: none !important; }
}
