/* 본문 중간에 넣는 연구·자료 원문 인용 상자 */
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-excerpt blockquote.research-excerpt { margin:14px 0 16px; padding:20px 22px; border:1px solid #e1e6ed; border-radius:8px; background:#fff; color:#151515; text-align:left; }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-excerpt blockquote.research-excerpt > p { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:18px; font-weight:400; line-height:1.7; letter-spacing:0; color:#151515; word-break:normal; overflow-wrap:anywhere; }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-figure.source-excerpt blockquote.research-excerpt > p { word-break:normal; }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-excerpt blockquote.research-excerpt[lang="ko"] > p { font-family:inherit; }
@media(max-width:600px) { :is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-excerpt blockquote.research-excerpt { padding:16px; } }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-figure.source-excerpt > p.source-context { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #dfe7f2; color: #344a66; font-size: 14px; line-height: 1.7; word-break: normal; }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-figure.source-excerpt > p.source-context strong { color: #193f7a; }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-excerpt > p.translation { word-break: normal; }
:is(.article, article:has(> .dm-article-heading), .dm-post) figure.source-excerpt :is(blockquote.research-excerpt > p, p.translation, p.source-context) * { word-break: inherit; }
.dm-post figure.source-excerpt { margin:1.8em 0 2.4em; padding:20px 22px; border:1px solid #dfe7f2; background:#f7f9fc; border-radius:15px; }
.dm-post figure.source-excerpt .excerpt-label { display:block; margin-bottom:10px; font-size:12px; font-weight:700; color:#65758b; }
.dm-post figure.source-excerpt blockquote.research-excerpt { margin:14px 0 16px; padding:20px 22px; border:1px solid #e1e6ed; border-radius:8px; background:#fff; color:#151515; text-align:left; }
.dm-post:has(> .dm-article-heading) figure.source-excerpt blockquote.research-excerpt > p { margin:0; font-family:Georgia,"Times New Roman",serif; font-size:18px; font-weight:400; line-height:1.7; letter-spacing:0; color:#151515; word-break:normal; overflow-wrap:anywhere; }
.dm-post:has(> .dm-article-heading) figure.source-excerpt > p.translation { margin:14px 0 0; font-size:16px; line-height:1.8; color:#253953; word-break:normal; }
.dm-post figure.source-excerpt .translation strong { color:#193f7a; }
.dm-post figure.source-excerpt figcaption { padding:12px 0 0; font-size:13px; line-height:1.6; color:#617089; overflow-wrap:anywhere; }
@media(max-width:600px) { .dm-post figure.source-excerpt { padding:16px 14px; } .dm-post figure.source-excerpt blockquote.research-excerpt { padding:16px; } }

/* 글 끝의 참고자료는 본문보다 작고 간결하게 표시한다. */
.dm-post .dm-references { margin-top: 32px; padding-top: 20px; border-top: 1px solid #dfe7f2; }
.dm-post .dm-references h3 { margin: 0 0 12px; font-size: 17px; line-height: 1.5; color: #253953; }
.dm-post:has(> .dm-article-heading) .dm-references p:not(.note) { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: #617089; overflow-wrap: anywhere; }

/* Apply the same source and reference treatment to the older article layout. */
.article figure.source-excerpt { margin:1.8em 0 2.4em; padding:20px 22px; border:1px solid #dfe7f2; background:#f7f9fc; border-radius:15px; }
.article figure.source-excerpt .excerpt-label { display:block; margin-bottom:10px; font-size:12px; font-weight:700; color:#65758b; }
.article figure.source-excerpt > p.translation { margin:14px 0 0; font-size:16px; line-height:1.8; color:#253953; }
.article figure.source-excerpt figcaption { padding:12px 0 0; font-size:13px; line-height:1.6; color:#617089; overflow-wrap:anywhere; }
.article .dm-references { margin-top:32px; padding-top:20px; border-top:1px solid #dfe7f2; }
:is(article, main).article > .dm-references > h2 { margin:0 0 12px; padding:0; font-size:17px; line-height:1.5; color:#253953 !important; }
.article .dm-references ul { margin:0; padding-left:1.35em; }
.article .dm-references li { margin:0 0 8px; font-size:13px; line-height:1.6; color:#617089; overflow-wrap:anywhere; }
html[data-dm-theme="dark"] .article .dm-references { border-color:#48617f; }
html[data-dm-theme="dark"] :is(article, main).article > .dm-references > h2,
html[data-dm-theme="dark"] .article .dm-references li { color:var(--dm-dark-muted) !important; }

/* Article contents stay in the reading flow, including on mobile. */
:is(article, main).article > nav.toc { display:block; position:static; width:auto; margin:24px 0; padding:20px 22px; border:1px solid #dfe7f2; border-radius:15px; background:#f7f9fc; }
:is(article, main).article > nav.toc h3 { margin:0 0 10px; font-size:17px; line-height:1.5; }
:is(article, main).article > nav.toc ul { display:block; margin:0; padding-left:1.3em; list-style:disc; }
:is(article, main).article > nav.toc li { margin:6px 0; padding:0; }
:is(article, main).article > nav.toc a { display:inline; padding:0; border:0; background:none; color:#2859ae; font-size:15px; line-height:1.6; text-decoration:underline; text-underline-offset:2px; }
html[data-dm-theme="dark"] :is(article, main).article > nav.toc a { color:var(--dm-dark-link) !important; }
@media(max-width:600px) { .article figure.source-excerpt { padding:16px 14px; } }

/* Short excerpts retain the shared source layout with less empty space. */
:is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact { margin:1.35em 0; padding:16px 18px; }
:is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact blockquote.research-excerpt { margin:8px 0 10px; padding:12px 15px; }
:is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact blockquote.research-excerpt > p { margin:0 !important; }
:is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact > p.source-context { margin:8px 0 0 !important; padding-top:8px; }
:is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact figcaption { padding-top:8px; }
@media(max-width:600px) {
  :is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact { padding:14px; }
  :is(.dm-post, .article) figure.source-excerpt.source-excerpt--compact blockquote.research-excerpt { padding:12px; }
}
