.article-preview { display:block; width:100%; margin-top:12px; overflow:hidden; border:1px solid var(--border-color); border-radius:var(--radius-lg); text-align:left; color:var(--text-primary); background:var(--bg-primary); cursor:pointer; }
.article-preview:hover { background:var(--bg-secondary); }
.article-preview:focus-visible,.article-image-button:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.article-preview-cover { position:relative; aspect-ratio:2.5; background:var(--bg-secondary); overflow:hidden; }
.article-preview-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.article-badge { display:inline-flex; align-items:center; padding:2px 6px; border-radius:4px; font-size:12px; font-weight:700; line-height:16px; color:#fff; background:rgba(0,0,0,.55); }
.article-preview-cover>.article-badge { position:absolute; left:12px; bottom:12px; }
.article-preview-label { padding:12px 12px 0; }
.article-preview-copy { padding:12px; }
.article-preview-title { font-size:17px; font-weight:800; line-height:20px; margin-bottom:8px; overflow-wrap:anywhere; }
.article-preview-excerpt { font-size:15px; line-height:20px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; }
.article-cover { margin-top:12px; }
.article-cover img { display:block; width:100%; height:auto; }
.article-image-button { display:block; border:0; padding:0; width:100%; background:transparent; cursor:pointer; color:inherit; }
.article-title { font-size:34px; line-height:44px; font-weight:800; margin:24px 0; overflow-wrap:anywhere; }
.article-body { font-size:17px; line-height:28px; overflow-wrap:anywhere; }
.article-body p,.article-body ul,.article-body ol,.article-body blockquote,.article-body pre { margin:0 0 28px; white-space:pre-wrap; }
.article-body h2,.article-body h3,.article-body h4 { font-weight:800; margin:28px 0; }
.article-body h2 { font-size:30px; line-height:40px; }
.article-body h3 { font-size:26px; line-height:36px; }
.article-body h4 { font-size:22px; line-height:32px; }
.article-body ul { list-style:disc; padding-left:28px; }
.article-body ol { list-style:decimal; padding-left:28px; }
.article-body li { margin:8px 0; }
.article-body a { color:inherit; text-decoration:underline; }
.article-body hr { border:0; border-top:1px solid var(--border-color); margin:28px 0; }
.article-body blockquote { border-left:3px solid var(--border-color); padding-left:16px; color:var(--text-secondary); }
.article-body pre { overflow:auto; padding:16px; background:var(--bg-secondary); border-radius:var(--radius-lg); font-size:14px; }
.article-body code { font-family:ui-monospace,monospace; }
.article-figure { margin:28px 0; }
.article-figure figcaption { margin-top:8px; font-size:13px; line-height:20px; color:var(--text-secondary); white-space:pre-wrap; }
.article-figure img { display:block; width:100%; height:auto; border-radius:var(--radius-lg); }
.article-image-missing { display:flex; min-height:100px; height:100%; align-items:center; justify-content:center; background:var(--bg-secondary); color:var(--text-secondary); font-size:14px; }
.article-notice { color:var(--text-secondary); font-size:14px; line-height:20px; border-top:1px solid var(--border-color); padding-top:16px; }
.article-header-actions { display:flex; align-items:center; gap:8px; }
/* The focus toggle is an icon button that also shows its label where there is room. */
.article-focus-toggle { width:auto; min-width:36px; gap:6px; padding:0 8px; font-size:13px; line-height:20px; white-space:nowrap; }
@media(max-width:480px) { .article-focus-label { display:none; } }
.quote-card .article-preview { border:0; border-radius:0; margin-top:8px; background:transparent; }
.quote-card .article-preview-copy { padding:12px 0 0; }
.quote-nested .article-preview-cover { display:none; }
.quote-nested .article-preview-excerpt { -webkit-line-clamp:2; }
.article-focus { position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; color:var(--text-primary); background:var(--bg-primary); overflow:auto; overscroll-behavior:contain; }
.article-focus::backdrop { background:var(--bg-primary); }
.article-focus-toolbar { position:sticky; top:0; z-index:1; display:flex; justify-content:flex-end; padding:12px 16px; background:var(--bg-primary); }
.article-focus-content { max-width:632px; margin:0 auto; padding:0 16px 48px; }
@media(max-width:640px) {
    .article-title { font-size:26px; line-height:32px; }
    .article-body h2 { font-size:26px; line-height:34px; }
    .article-body h3 { font-size:22px; line-height:30px; }
    .article-body h4 { font-size:20px; line-height:28px; }
}

.article-detail>.tweet-actions { padding-bottom:20px; border-bottom:1px solid var(--border-color); margin:0 0 28px; }
.article-focus-author { display:flex; flex-direction:column; gap:4px; margin-bottom:20px; font-size:15px; line-height:20px; }
.article-focus-author span { color:var(--text-secondary); }
