body.article-detail { padding-top: 0; }
.article-detail .detail-wrapper { max-width: 840px; margin: 0 auto; padding: 0; }
.article-detail a { color: #93c5fd; }
.article-detail a:hover { color: var(--text-1); }
.article-detail a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.article-detail .detail-nav { display: flex; align-items: center; padding: 6px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-detail .detail-nav a { color: var(--text-2); font-size: 13px; text-decoration: none; }
.article-detail .detail-nav a:hover { color: var(--text-1); }
.article-detail .detail-back { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; }
.article-detail .detail-back:hover { background: var(--surface-1); }
.article-detail .detail { padding: 32px; border-radius: 8px; background: var(--surface-1); }
.article-detail .detail > h1 { margin: 0 0 16px; color: var(--text-1); font-size: 28px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.article-detail .detail-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; color: var(--text-2); font-size: 12px; line-height: 20px; }
.article-detail .detail-meta time { color: var(--text-2); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: inherit; line-height: inherit; }
.article-detail .detail-meta .detail-category { max-width: 100%; overflow-wrap: anywhere; }
.article-detail .cover { display: block; width: 100%; max-height: 280px; height: auto; object-fit: cover; margin: 24px 0; border-radius: 6px; }
.article-detail .prose { margin-top: 24px; color: #cbd5e1; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.article-detail .prose > :first-child { margin-top: 0; }
.article-detail .prose > :last-child { margin-bottom: 0; }
.article-detail .prose p { margin: 1em 0; }
.article-detail .prose :is(h1, h2, h3, h4, h5, h6) { margin: 1.5em 0 .6em; color: var(--text-1); font-weight: 600; line-height: 1.5; }
.article-detail .prose h1 { font-size: 25px; }
.article-detail .prose h2 { font-size: 22px; }
.article-detail .prose h3 { font-size: 18px; }
.article-detail .prose :is(h4, h5, h6) { font-size: 16px; }
.article-detail .prose :is(ul, ol) { padding-left: 1.5em; }
.article-detail .prose li { margin: .35em 0; }
.article-detail .prose strong { color: var(--text-1); }
.article-detail .prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-detail .prose img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 6px; }
.article-detail .prose figure { margin: 24px 0; }
.article-detail .prose figcaption { color: var(--text-2); font-size: 12px; text-align: center; }
.article-detail .prose blockquote { margin: 24px 0; padding: 12px 18px; border-left: 2px solid var(--accent); background: var(--surface-2); border-radius: 0 6px 6px 0; color: var(--text-2); }
.article-detail .prose blockquote p { margin: .4em 0; }
.article-detail .prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.article-detail .prose :is(td, th) { padding: 10px 14px; border: 1px solid var(--line-hover); color: #cbd5e1; text-align: left; }
.article-detail .prose th { background: var(--surface-2); color: var(--text-1); font-weight: 600; }
.article-detail .prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.article-detail .prose code { padding: 2px 5px; border-radius: 3px; background: var(--surface-2); color: #e2e8f0; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; }
.article-detail .prose pre { max-width: 100%; margin: 24px 0; padding: 16px; overflow-x: auto; border-radius: 6px; background: var(--surface-2); color: #e2e8f0; line-height: 1.6; }
.article-detail .prose pre code { padding: 0; background: transparent; }
.article-detail .prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line-hover); }
.article-detail .detail-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-hover); }
.article-detail .detail-source { margin: 0; min-width: 0; color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.article-detail .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; }
.article-detail .badge { padding: 2px 8px; border-radius: 3px; background: rgba(255, 255, 255, .05); color: #cbd5e1; font-size: 11px; }
.article-detail .notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 6px; background: #262318; color: #e5d19b; font-size: 13px; }
@media (max-width: 600px) {
  .article-detail .detail { padding: 20px; }
  .article-detail .detail > h1 { font-size: 23px; }
  .article-detail .prose { font-size: 14px; }
}
@media (max-width: 480px) {
  body.article-detail { padding: 0 16px 40px; }
  .article-detail .detail { padding: 18px; }
}
