/* ── Shared outer ─────────────────────────────────────────────── */
.articles-outer {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── List header ──────────────────────────────────────────────── */
.articles-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.articles-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.articles-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.articles-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.articles-notice {
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #84cc16;
  margin-bottom: 20px;
}

/* ── Write button ─────────────────────────────────────────────── */
.btn-write {
  height: 38px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.btn-write:hover { background: rgba(245,158,11,.1); }

/* ── Article feed ─────────────────────────────────────────────── */
.articles-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}

.article-card:hover .ac-title {
  color: var(--brand);
}

.ac-cover {
  width: 120px;
  min-width: 120px;
  height: 80px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.ac-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.ac-dot { color: var(--border2); }

.ac-author { font-weight: 600; color: var(--text); }

/* ── My drafts (work in progress) ────────────────────────────────────── */
.my-drafts {
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.my-drafts-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.my-drafts-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.my-drafts-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 2px 8px;
}
.my-drafts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.my-draft-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.my-draft-item + .my-draft-item {
  border-top: 1px solid var(--border);
}
.my-draft-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
  min-width: 0;
}
.my-draft-delete-form { flex-shrink: 0; margin: 0; }
.my-draft-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.my-draft-delete-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}
.my-draft-link:hover {
  background: rgba(255, 255, 255, 0.03);
}
.my-draft-link:hover .my-draft-cta {
  color: var(--brand);
}
.my-draft-body {
  flex: 1 1 auto;
  min-width: 0;
}
.my-draft-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.my-draft-title-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.my-draft-status {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
}
.my-draft-status.status-draft {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.my-draft-status.status-pending {
  color: var(--tier-hold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.my-draft-status.status-rejected {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.my-draft-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-draft-note {
  font-size: 11px;
  color: var(--danger);
  margin: 4px 0;
  font-style: italic;
}
.my-draft-meta {
  font-size: 10px;
  color: var(--muted);
}
.my-draft-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .my-drafts { padding: 16px; }
  .my-draft-cta { display: none; }
}

.ac-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 2px;
}
.ac-author-avatar-placeholder {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.ac-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 2px 8px;
}

.ac-badge.community {
  background: rgba(245, 158, 11, 0.12);
  color: var(--brand);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ac-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.12s;
}

.ac-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ac-footer {
  margin-top: 4px;
}

.ac-read-time {
  font-size: 11px;
  color: var(--muted);
}

/* ── Empty state ──────────────────────────────────────────────── */
.articles-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

.articles-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.articles-empty a {
  color: var(--brand);
}

/* ── Locked state ─────────────────────────────────────────────── */
.article-locked {
  text-align: center;
  padding: 80px 20px;
}

.article-locked-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.article-locked h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.article-locked p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ── Read view ────────────────────────────────────────────────── */
.article-read-outer {
  padding-bottom: 80px;
}

.article-read-wrap {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  background: rgba(20,21,25,.4);
}
@media (max-width: 760px) {
  .article-read-wrap {
    padding: 20px 18px;
    border-radius: 10px;
  }
}

.article-back {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.12s;
}

.article-back:hover { color: var(--text); }

.article-read-header {
  margin-bottom: 28px;
}

.article-read-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.article-read-subtitle {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 20px;
  line-height: 1.5;
}

.article-read-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-author-name {
  font-size: 13px;
  font-weight: 600;
}

.article-read-dateline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.btn-edit-article {
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-edit-article:hover { color: var(--text); border-color: var(--brand); }

.article-read-cover {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.article-read-cover img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* ── Prose (article body) ─────────────────────────────────────── */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.3px;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.prose p { margin: 0 0 18px; }

.prose a { color: var(--brand); }

.prose blockquote {
  border-left: 3px solid var(--brand);
  margin: 24px 0;
  padding: 8px 20px;
  color: var(--muted);
  font-style: italic;
}

.prose pre, .prose code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface);
  border-radius: 6px;
}

.prose pre {
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
}

.prose code { padding: 2px 6px; }

.prose img {
  max-width: 100%;
  /* `height: auto` overrides any inline height="..." attribute (e.g. from
     pasted Substack/Medium markup) so images keep their aspect ratio. */
  height: auto !important;
  width: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.prose li { margin-bottom: 6px; }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ── Article read footer ──────────────────────────────────────── */
.article-read-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-delete-article {
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-delete-article:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ── Editor ───────────────────────────────────────────────────── */
.editor-outer {
  padding-bottom: 80px;
}

.editor-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.editor-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.editor-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.editor-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #ef4444;
  margin-bottom: 20px;
}

.editor-rejected {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #f97316;
  margin-bottom: 20px;
}

.editor-field {
  margin-bottom: 20px;
}

.editor-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 8px;
}

.req { color: var(--brand); }

.editor-text-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.editor-text-input:focus { border-color: var(--brand); }

.editor-subtitle-input { font-size: 14px; }

.editor-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
}

.editor-body-field { margin-bottom: 28px; }

/* Override Quill theme to match dark UI */
.ql-toolbar.ql-snow {
  background: var(--surface2);
  border: 1px solid var(--border) !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0;
}

.ql-container.ql-snow {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: 0 0 10px 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}

.ql-editor {
  min-height: 360px;
  line-height: 1.7;
}

.ql-editor.ql-blank::before {
  color: var(--muted);
  font-style: normal;
}

.ql-snow .ql-stroke { stroke: var(--muted) !important; }
.ql-snow .ql-fill { fill: var(--muted) !important; }
.ql-snow .ql-picker { color: var(--muted) !important; }
.ql-snow .ql-picker-options {
  background: var(--surface2) !important;
  border-color: var(--border) !important;
}
.ql-snow .ql-active .ql-stroke { stroke: var(--brand) !important; }
.ql-snow .ql-active .ql-fill { fill: var(--brand) !important; }
.ql-snow .ql-picker-label.ql-active { color: var(--brand) !important; }

.editor-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-save-draft {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-save-draft:hover { border-color: var(--brand); color: var(--text); }

.btn-submit-article {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-submit-article:hover { background: rgba(245,158,11,.1); }

/* ── Admin queue ──────────────────────────────────────────────── */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.queue-card-info { flex: 1; min-width: 0; }

.queue-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.queue-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.queue-preview {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.queue-preview:hover { text-decoration: underline; }

.queue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reject-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reject-note-input {
  height: 34px;
  padding: 0 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  width: 180px;
  outline: none;
}

.btn-approve {
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: rgba(132, 204, 22, 0.18);
  color: #84cc16;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(132, 204, 22, 0.3);
}

.btn-approve:hover { background: rgba(132, 204, 22, 0.28); }

.btn-reject {
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-reject:hover { background: rgba(239, 68, 68, 0.2); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .article-read-title { font-size: 24px; }
  .article-read-subtitle { font-size: 15px; }
  .prose { font-size: 15px; }
  .ac-cover { display: none; }
  .queue-card { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────────────────
   ART-1..ART-9 — Articles usability expansion
   ───────────────────────────────────────────────────────────────────── */

/* Toolbar (search + tabs) */
.articles-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.articles-search {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.articles-search:focus { border-color: rgba(77,139,255,.55); }
.articles-search-btn {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.articles-search-btn:hover { border-color: rgba(77,139,255,.55); color: #4D8BFF; }
.articles-tabs { display: flex; gap: 4px; margin-left: auto; }
.articles-tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .12s;
}
.articles-tab:hover { color: var(--text); }
.articles-tab.is-active {
  background: var(--surface2);
  border-color: var(--border2);
  color: #4D8BFF;
}

/* Active filter chips bar */
.active-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.active-filters .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.active-filters .filter-chip:hover { border-color: rgba(77,139,255,.55); }
.active-filters .filter-chip .chip-key { color: var(--muted); }
.active-filters .filter-chip .chip-x { color: var(--muted2); margin-left: 2px; }
.filter-results { font-size: 11px; color: var(--muted); margin-left: 4px; }

/* Layout: feed + tag rail */
.articles-layout { display: flex; gap: 18px; align-items: flex-start; }
.articles-main { flex: 1 1 0; min-width: 0; }
.articles-rail { flex: 0 0 220px; position: sticky; top: 78px; }
.articles-rail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.articles-rail-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.articles-rail-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Tag chips */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all .12s;
}
.tag-chip:hover { border-color: rgba(77,139,255,.55); color: #4D8BFF; }
.tag-chip.is-active {
  background: rgba(77,139,255,.10);
  border-color: rgba(77,139,255,.55);
  color: #4D8BFF;
}
.tag-chip-count {
  font-size: 10px;
  color: var(--muted2);
  background: rgba(0,0,0,.32);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}
.tag-chip-sm { padding: 2px 8px; font-size: 10px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.article-read-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Pagination */
.articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 8px;
}
.page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .12s, color .12s;
}
.page-btn:hover { border-color: rgba(77,139,255,.55); color: #4D8BFF; }
.page-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.page-info { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, rgba(77,139,255,.6), #4D8BFF);
  z-index: 9999;
  transition: width .08s linear;
  pointer-events: none;
}

/* Engagement bar (clap + save) */
.article-engagement {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 32px 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.engage-btn:hover:not(:disabled):not(.is-readonly) {
  border-color: rgba(77,139,255,.55);
  background: var(--surface);
}
.engage-btn.is-active {
  background: rgba(77,139,255,.12);
  border-color: rgba(77,139,255,.55);
  color: #4D8BFF;
}
.engage-btn.is-readonly { cursor: default; background: transparent; }
.engage-icon { font-size: 16px; line-height: 1; }
.engage-count { font-feature-settings: "tnum" 1; }

/* Author profile header */
.author-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.author-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
}
.author-name { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.author-meta { color: var(--muted); font-size: 12px; }

/* Author link wrapping the meta block on read.html */
.article-author-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.article-author-link:hover .article-author-name { color: #4D8BFF; }

/* Related articles block */
.article-related { margin: 32px 0 0; }
.article-related-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article-related-head a { color: var(--muted); text-decoration: none; }
.article-related-head a:hover { color: #4D8BFF; }
.article-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.article-related-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.article-related-item:hover { border-color: rgba(77,139,255,.45); }
.article-related-thumb {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
}
.article-related-thumb-empty {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
}
.article-related-body { padding: 12px 14px; }
.article-related-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.article-related-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-related-meta { font-size: 10px; color: var(--muted2); }

/* Notice variants */
.articles-notice-warn {
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.08);
  color: #fbbf24;
}

/* Sidebar badge (rejected drafts indicator) */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
  font-feature-settings: "tnum" 1;
}
.sidebar-badge-warn {
  background: rgba(239,68,68,.18);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.4);
}

/* Mobile collapse */
@media (max-width: 900px) {
  .articles-layout { flex-direction: column; }
  .articles-rail { position: static; flex-basis: auto; width: 100%; }
  .article-related-list { grid-template-columns: 1fr; }
  .articles-tabs { margin-left: 0; }
}
