/* Editorial reading layout. Scoped to article pages only. */
.article-content { max-width: 840px; min-width: 0; }
.article-content > h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.48; letter-spacing: -.035em; text-wrap: pretty; margin: 25px 0; }
.article-summary { color: #5b6978; font-size: 18px; line-height: 1.95; margin-bottom: 36px; padding-bottom: 30px; }
.article-cover { position: relative; margin: 0 0 48px; }
.article-cover img { width: 100%; height: auto; display: block; }
.cover-badge { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; background: rgba(13,15,18,.78); color: #fff; font-size: 10px; }
.article-body { min-width: 0; }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body li { font-size: 17px; line-height: 2; color: #354252; }
.article-body p { margin: 0 0 26px; }
.article-body h2 { margin: 64px 0 24px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: clamp(22px, 2.5vw, 27px); font-weight: 650; line-height: 1.55; text-wrap: pretty; }
.article-body h3 { margin: 38px 0 18px; font-weight: 600; line-height: 1.65; }
.article-body a { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-body a:hover { color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body li { margin-bottom: 9px; }
.article-body img { max-width: 100%; height: auto; margin: 32px auto; border: 1px solid var(--line); }
.article-body img.news-qr { width: 180px; max-width: 50%; border: 0; }
.article-body .news-video { display: block; max-width: 100%; height: auto; margin: 32px auto; border: 1px solid var(--line); background: var(--surface); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.article-body blockquote { margin: 28px 0; padding: 6px 22px; border-left: 2px solid var(--red); background: var(--surface); color: var(--muted); }
.article-body blockquote p { margin: 10px 0; color: var(--muted); }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; line-height: 1.8; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.article-body th { background: var(--surface); font-weight: 600; }
.article-body ul, .article-body ol { padding-inline-start: 25px; margin: 22px 0 30px; }
.article-body p > em:only-child { display: block; color: #667383; font-size: 14px; line-height: 1.85; font-style: normal; }
.article-body :not(pre) > code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; color: var(--red-deep); padding: .18em .4em; background: #f5f1f2; border: 1px solid #eee5e7; border-radius: 0; overflow-wrap: anywhere; }
.article-body .article-code { margin: 32px 0 36px; border: 1px solid #283a4c; border-radius: 0; background: #172332; overflow: hidden; box-shadow: 0 6px 18px #182b3b0b; }
.article-code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 21px; min-height: 52px; border-bottom: 1px solid #334254; background: #202e3e; color: #c9d5e3; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-code figcaption > span:first-child { letter-spacing: .035em; }
.article-code button { font: inherit; font-size: 12px; cursor: pointer; padding: 5px 11px; border: 1px solid #52657a; border-radius: 0; color: #e5ecf5; background: #ffffff07; transition: background .15s; white-space: nowrap; }
.article-code button:hover { background: #ffffff18; }
.article-code button[hidden] { display: none; }
.article-body .article-code pre { margin: 0; padding: 24px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #566981 #172332; tab-size: 4; }
.article-body .article-code pre code { display: block; width: max-content; min-width: 100%; padding: 0; margin: 0; border: 0; background: none; font: 14px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, 'Noto Sans Mono', monospace; color: #e2eaf4; white-space: pre; word-break: normal; overflow-wrap: normal; }
.article-code code::selection, .article-code code *::selection { background: #476382; color: #fff; }
.article-code .hljs-keyword, .article-code .hljs-literal { color: #d1b5ff; }
.article-code .hljs-string { color: #b4e1c2; }
.article-code .hljs-number { color: #ffcc99; }
.article-code .hljs-title, .article-code .hljs-built_in { color: #9bd6f5; }
.article-code .hljs-comment { color: #9eafc3; font-style: italic; }
.article-code .hljs-meta { color: #eab5c9; }
.article-body .article-equation { margin: 32px 0 36px; padding: 20px 26px 24px; border: 1px solid #dde5ec; background: #f6f8fa; border-radius: 0; }
.article-equation figcaption { color: #647386; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.equation-scroll { overflow-x: auto; padding: 10px 0 0; color: #24364b; }
.article-equation .katex-display { margin: 14px 0 8px; font-size: 1.15em; }
.article-equation .katex { white-space: nowrap; }
.article-body .article-table { overflow-x: auto; max-width: 100%; border: 1px solid #dde5ec; border-radius: 0; margin: 32px 0; scrollbar-color: #b8c5d2 #f6f8fa; }
.article-body .article-table table { display: table; width: 100%; min-width: 620px; margin: 0; border: 0; border-collapse: collapse; table-layout: auto; font-size: 15px; line-height: 1.75; }
.article-table th, .article-table td { border: 0; border-bottom: 1px solid #e3e9ef; padding: 16px 18px; }
.article-table th { background: #eef3f7; color: #34475a; font-weight: 600; }
.article-table tbody tr:nth-child(even) { background: #f8fafb; }
.article-table tbody tr:last-child td { border-bottom: 0; }
.article-table td { font-variant-numeric: tabular-nums; }
.article-table th:first-child, .article-table td:first-child { min-width: 150px; }
.article-code pre:focus-visible, .article-code button:focus-visible, .equation-scroll:focus-visible, .article-table:focus-visible { outline: 2px solid #a81930; outline-offset: -3px; }
@media(max-width:640px) {
 .article-content > h1 { font-size: 27px; line-height: 1.5; }
 .article-summary { font-size: 16px; line-height: 1.9; margin-bottom: 28px; }
 .article-cover { margin-bottom: 32px; }
 .article-body p, .article-body li { font-size: 16px; line-height: 1.95; }
 .article-body h2 { margin-top: 44px; padding-top: 20px; font-size: 22px; }
 .article-body .article-code { border-radius: 0; margin-block: 26px; }
 .article-code figcaption { padding: 10px 14px; }
 .article-body .article-code pre { padding: 18px 16px; }
 .article-body .article-code pre code { font-size: 13px; line-height: 1.85; }
 .article-body .article-equation { padding: 16px; margin-block: 26px; }
 .article-equation .katex-display { font-size: 1em; }
 .article-body .article-table table { font-size: 14px; }
 .article-body .article-table th, .article-body .article-table td { font-size: 14px; padding: 13px 15px; }
}
