/* anonymize.solutions Blog — matches anonym.community CSS variables exactly */
:root {
  --bg:    #0f1117;
  --s1:    #1a1d27;
  --s2:    #232736;
  --bd:    #2d3148;
  --t1:    #e2e4eb;
  --t2:    #9ca0b0;
  --ac:    #6c8aff;
  --or:    #fb923c;
  --sol:   #34d399;
  --warn:  #fbbf24;
  --crit:  #f87171;
  --hdr-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 0; top: 0; z-index: 200;
  background: var(--ac); color: #fff; padding: 8px 16px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  width: auto; height: auto;
}

/* ── Header / Nav ── */
#site-hdr {
  position: sticky; top: 0; z-index: 100;
  height: var(--hdr-h);
  background: rgba(15, 17, 23, .95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd);
}
.hdr-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.logo a { font-family: 'Cascadia Code','Fira Code','Consolas',monospace; color: var(--ac); text-decoration: none; letter-spacing: 1.5px; }
.logo a:hover { opacity: .85; }
.logo-dot { color: var(--sol); }
.logo .sep { color: var(--t2); margin: 0 6px; font-family: inherit; font-weight: 400; }
.logo-blog { font-family: 'Segoe UI',system-ui,sans-serif; font-size: 13px; letter-spacing: 0; color: var(--t2) !important; }
.logo-blog:hover { color: var(--t1) !important; }

#blog-nav { display: flex; align-items: center; gap: 3px; overflow-x: auto; }
#blog-nav a {
  font-size: 12px; color: var(--t2); text-decoration: none;
  padding: 5px 10px; border: 1px solid transparent; border-radius: 5px;
  white-space: nowrap; transition: .15s;
}
#blog-nav a:hover { color: var(--t1); border-color: var(--bd); }
#blog-nav a[aria-current="page"] { color: var(--ac); border-color: var(--ac); background: rgba(108,138,255,.1); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 4px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--t2); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media(max-width:900px) {
  .nav-toggle { display: flex; }
  #blog-nav {
    display: none; position: fixed; top: var(--hdr-h); left: 0; right: 0;
    background: rgba(15,17,23,.98); flex-direction: column;
    padding: 24px; gap: 8px; border-bottom: 1px solid var(--bd); z-index: 99;
  }
  #blog-nav.open { display: flex; }
  #blog-nav a { font-size: 14px; padding: 10px 16px; border-color: var(--bd); }
}

/* ── Main ── */
main { flex: 1; padding: 32px 24px; max-width: 1100px; margin: 0 auto; width: 100%; }

/* ── Footer ── */
#blog-footer { border-top: 1px solid var(--bd); margin-top: 64px; padding: 48px 24px 32px; background: var(--bg); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.footer-brand { font-family: 'Cascadia Code','Fira Code','Consolas',monospace; font-size: 13px; font-weight: 700; color: var(--ac); letter-spacing: 2px; margin-bottom: 10px; }
.footer-tagline { font-size: 12px; color: var(--t2); line-height: 1.7; margin-bottom: 14px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--t1); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 12px; color: var(--t2); text-decoration: none; transition: .15s; }
.footer-links a:hover { color: var(--ac); }
.footer-copy { font-size: 11px; color: var(--t2); opacity: .5; margin-top: 18px; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; color: var(--t2); opacity: .5; text-align: center; }
.footer-bottom a { color: var(--t2); }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── Cards ── */
.card {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 20px;
}

.card-sm {
  background: var(--s2);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color .15s;
}
.card-sm:hover { border-color: var(--ac); }

/* ── Blog listing ── */
.blog-header { margin-bottom: 32px; }
.blog-header h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.blog-header p { color: var(--t2); }

.search-row {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; align-items: center;
}
.search-row input {
  flex: 1; min-width: 200px;
  background: var(--s2); border: 1px solid var(--bd);
  color: var(--t1); border-radius: 8px; padding: 8px 14px; font-size: 14px;
  outline: none;
}
.search-row input:focus { border-color: var(--ac); }

.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  background: var(--s2); border: 1px solid var(--bd);
  color: var(--t2); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; cursor: pointer;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.chip:hover, .chip.active { background: var(--ac); color: #fff; border-color: var(--ac); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.post-card {
  background: var(--s1); border: 1px solid var(--bd); border-radius: 10px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s;
}
.post-card:hover { border-color: var(--ac); }
.post-card h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.post-card h2 a { color: var(--t1); text-decoration: none; }
.post-card h2 a:hover { color: var(--ac); }
.post-card .excerpt { color: var(--t2); font-size: 14px; line-height: 1.5; flex: 1; }
.post-card .meta {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--t2);
}
.post-card .meta .author { font-weight: 500; color: var(--t1); }
.author-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--t1); }
.av-init {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700;
  background: var(--av-bg, var(--ac)); color: #fff; flex-shrink: 0;
}

.pagination {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 32px;
}
.pagination a, .pagination span {
  padding: 6px 14px; border-radius: 6px; font-size: 14px; text-decoration: none;
}
.pagination a { background: var(--s2); color: var(--t1); border: 1px solid var(--bd); }
.pagination a:hover { border-color: var(--ac); color: var(--ac); }
.pagination .current { background: var(--ac); color: #fff; }

/* ── Blog post ── */
.post-hero { margin-bottom: 32px; }
.post-hero h1 { font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--t2); }
.post-meta strong { color: var(--t1); }

.post-body { max-width: 760px; }
.post-body h2 { font-size: 22px; margin: 28px 0 12px; }
.post-body h3 { font-size: 18px; margin: 22px 0 10px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 16px; }
.post-body li { margin-bottom: 6px; }
.post-body code {
  background: var(--s2); color: var(--sol); border-radius: 4px;
  padding: 1px 6px; font-size: .9em;
}
.post-body pre {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 8px;
  padding: 16px; overflow-x: auto; margin-bottom: 16px;
}
.post-body pre code { background: none; padding: 0; color: var(--t1); }
.post-body blockquote {
  border-left: 3px solid var(--ac); padding-left: 16px;
  color: var(--t2); margin-bottom: 16px;
}
.post-body a { color: var(--ac); }
.post-body hr { border: none; border-top: 1px solid var(--bd); margin: 24px 0; }

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--s1); border: 1px solid var(--bd); border-radius: 8px;
  padding: 16px 20px; text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--ac); }
.stat-card .lbl { font-size: 12px; color: var(--t2); margin-top: 4px; }

/* ── Tables ── */
.tbl-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--bd); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--s2); }
th { padding: 10px 14px; text-align: left; font-size: 12px; color: var(--t2); font-weight: 600; }
td { padding: 10px 14px; border-top: 1px solid var(--bd); }
tr:hover td { background: rgba(108, 138, 255, .04); }

/* ── Badges ── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
}
.badge-green { background: rgba(52, 211, 153, .15); color: var(--sol); }
.badge-gray  { background: rgba(156, 160, 176, .15); color: var(--t2); }
.badge-red   { background: rgba(248, 113, 113, .15); color: var(--crit); }
.badge-blue  { background: rgba(108, 138, 255, .15); color: var(--ac); }
.badge-warn  { background: rgba(251, 191, 36, .15); color: var(--warn); }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: all .15s;
}
.btn-primary { background: var(--ac); color: #fff; }
.btn-primary:hover { background: #5a78ef; }
.btn-ghost { background: transparent; border-color: var(--bd); color: var(--t2); }
.btn-ghost:hover { border-color: var(--ac); color: var(--ac); }
.btn-danger { background: transparent; border-color: var(--crit); color: var(--crit); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* ── Auth page ── */
.auth-wrap {
  max-width: 440px; margin: 40px auto;
}
.tab-row { display: flex; border-bottom: 1px solid var(--bd); margin-bottom: 24px; }
.tab-btn {
  background: none; border: none; color: var(--t2); padding: 10px 20px;
  font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all .15s;
}
.tab-btn.active { color: var(--ac); border-bottom-color: var(--ac); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 6px; }
.form-group input {
  width: 100%; background: var(--s2); border: 1px solid var(--bd);
  color: var(--t1); border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none;
}
.form-group input:focus { border-color: var(--ac); }

.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
}
.alert-success { background: rgba(52, 211, 153, .1); color: var(--sol); border: 1px solid rgba(52, 211, 153, .2); }
.alert-error   { background: rgba(248, 113, 113, .1); color: var(--crit); border: 1px solid rgba(248, 113, 113, .2); }
.alert-info    { background: rgba(108, 138, 255, .1); color: var(--ac); border: 1px solid rgba(108, 138, 255, .2); }

/* ── Dashboard ── */
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dash-header h1 { font-size: 22px; font-weight: 700; }

.section-title { font-size: 14px; font-weight: 600; color: var(--t2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }

.editor-wrap { background: var(--s1); border: 1px solid var(--bd); border-radius: 10px; padding: 20px; margin-top: 24px; }
.editor-wrap h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.editor-wrap input[type=text] {
  width: 100%; background: var(--s2); border: 1px solid var(--bd);
  color: var(--t1); border-radius: 8px; padding: 10px 14px; font-size: 14px;
  outline: none; margin-bottom: 12px;
}
.editor-wrap input[type=text]:focus { border-color: var(--ac); }
.editor-actions { display: flex; gap: 10px; margin-top: 12px; }

/* EasyMDE overrides */
.EasyMDEContainer .CodeMirror {
  background: var(--s2) !important; color: var(--t1) !important;
  border: 1px solid var(--bd) !important; border-radius: 0 0 8px 8px !important;
}
.editor-toolbar {
  background: var(--s2) !important; border: 1px solid var(--bd) !important;
  border-bottom: none !important; border-radius: 8px 8px 0 0 !important;
}
.editor-toolbar a { color: var(--t2) !important; }
.editor-toolbar a:hover, .editor-toolbar a.active { color: var(--ac) !important; background: var(--bd) !important; }
.editor-toolbar i.separator { border-color: var(--bd) !important; }

/* ── Admin tabs ── */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bd); margin-bottom: 28px; }
.admin-tab {
  background: none; border: none; color: var(--t2); padding: 10px 18px;
  font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; border-radius: 6px 6px 0 0; transition: all .15s;
}
.admin-tab.active { color: var(--ac); border-bottom-color: var(--ac); background: rgba(108,138,255,.06); }
.admin-tab:hover:not(.active) { color: var(--t1); background: var(--s2); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Confirm modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 500; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--s1); border: 1px solid var(--bd); border-radius: 12px;
  padding: 28px 32px; max-width: 400px; width: 90%; text-align: center;
}
.modal h3 { font-size: 18px; margin-bottom: 10px; }
.modal p { color: var(--t2); font-size: 14px; margin-bottom: 20px; }
.modal-btns { display: flex; gap: 10px; justify-content: center; }

/* ── Canvas chart ── */
canvas { max-width: 100%; }

/* ── Misc ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--t2); }
.empty-state svg { margin-bottom: 16px; opacity: .4; }

.back-link { color: var(--t2); text-decoration: none; font-size: 13px; }
.back-link:hover { color: var(--ac); }

.page-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.page-sub { color: var(--t2); font-size: 14px; margin-bottom: 28px; }

.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--t2); }

@media (max-width: 600px) {
  main { padding: 20px 16px; }
  #site-hdr { padding: 0 16px; }
  .post-hero h1 { font-size: 24px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Phase A: Copy button, Share bar ── */
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--s1); border: 1px solid var(--bd); color: var(--t2);
  font-size: 11px; padding: 3px 10px; border-radius: 4px; cursor: pointer;
  transition: .15s; font-family: inherit;
}
.copy-btn:hover { color: var(--ac); border-color: var(--ac); }

.share-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--bd);
}
.share-bar a, .share-bar button {
  font-size: 12px; color: var(--t2); text-decoration: none; padding: 4px 10px;
  border: 1px solid var(--bd); border-radius: 4px; transition: .15s;
  background: none; cursor: pointer; font-family: inherit;
}
.share-bar a:hover, .share-bar button:hover { color: var(--ac); border-color: var(--ac); }

/* ── Phase B: Author card ── */
.author-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--s1); border: 1px solid var(--bd); border-radius: 10px;
  padding: 20px; margin-top: 40px;
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(108,138,255,.2);
  color: var(--ac); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.author-name a { color: var(--t1); text-decoration: none; }
.author-name a:hover { color: var(--ac); }
.author-affil { font-size: 12px; color: var(--t2); margin-bottom: 8px; }
.author-bio { font-size: 13px; color: var(--t2); line-height: 1.6; margin-bottom: 8px; }
.author-social { display: flex; gap: 10px; flex-wrap: wrap; }
.author-social a { font-size: 12px; color: var(--t2); text-decoration: none; }
.author-social a:hover { color: var(--ac); }
.author-link { color: inherit; text-decoration: none; }
.author-link:hover { color: var(--ac); }

/* ── Phase C: Comments ── */
.comments-section {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bd);
}
.comments-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.comment-form textarea {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 8px;
  color: var(--t1); padding: 12px; font-size: 14px; font-family: inherit;
  resize: vertical; transition: border-color .15s;
}
.comment-form textarea:focus { outline: none; border-color: var(--ac); }
.comment-form-actions {
  display: flex; align-items: center; justify-content: space-between;
}
.char-count { font-size: 12px; color: var(--t2); }
.sign-in-prompt { color: var(--t2); font-size: 14px; margin-bottom: 24px; }
.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comment {
  display: flex; gap: 12px; align-items: flex-start;
}
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(108,138,255,.15);
  color: var(--ac); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-meta { font-size: 13px; margin-bottom: 6px; }
.comment-meta strong { color: var(--t1); margin-right: 8px; }
.comment-meta span { color: var(--t2); font-size: 12px; }
.comment-content { font-size: 14px; color: var(--t1); line-height: 1.6; white-space: pre-wrap; }
.comment-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-link { background: none; border: none; color: var(--t2); font-size: 12px; cursor: pointer; padding: 0; }
.btn-link:hover { color: var(--ac); }
.btn-link.danger:hover { color: #ef4444; }
.replies { margin-top: 12px; margin-left: 16px; display: flex; flex-direction: column; gap: 12px; }
.reply-form { margin-top: 12px; }

/* ── Phase D: Series ── */
.series-banner {
  background: rgba(108,138,255,.08); border: 1px solid rgba(108,138,255,.2);
  border-radius: 8px; padding: 10px 16px; margin-bottom: 20px;
  font-size: 13px; color: var(--t2);
}
.series-banner a { color: var(--ac); font-weight: 600; }
.series-label { margin-right: 6px; }
.series-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bd);
}
.series-nav-btn {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  background: var(--s1); border: 1px solid var(--bd); border-radius: 8px;
  text-decoration: none; transition: border-color .15s;
}
.series-nav-btn:hover { border-color: var(--ac); }
.series-nav-btn.next { text-align: right; align-items: flex-end; }
.snav-label { font-size: 11px; color: var(--t2); text-transform: uppercase; letter-spacing: .5px; }
.snav-title { font-size: 13px; font-weight: 600; color: var(--t1); }

@media (max-width: 600px) {
  .series-nav { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; }
}

/* ── Author page ── */
.author-page-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--s1); border: 1px solid var(--bd); border-radius: 12px;
  padding: 28px; margin-bottom: 8px;
}
.author-page-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(108,138,255,.2);
  color: var(--ac); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 28px; flex-shrink: 0;
}
.author-page-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.author-page-affil { font-size: 13px; color: var(--t2); margin-bottom: 12px; }
.author-page-bio { font-size: 14px; color: var(--t2); line-height: 1.7; max-width: 600px; }
@media (max-width: 600px) { .author-page-card { flex-direction: column; } }

/* ── Series page ── */
.series-page-header {
  margin: 20px 0 36px; padding-bottom: 24px; border-bottom: 1px solid var(--bd);
}
.series-page-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--t2);
  text-transform: uppercase; margin-bottom: 10px;
}
.series-page-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.series-page-desc { font-size: 15px; color: var(--t2); line-height: 1.6; margin-bottom: 12px; }
.series-page-meta { font-size: 13px; color: var(--t2); }
.series-page-meta a { color: var(--ac); }
.series-posts-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.series-post-item {
  display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--bd);
}
.series-post-num {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--t2); flex-shrink: 0; margin-top: 2px;
}
.series-post-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.series-post-title a { color: var(--t1); text-decoration: none; }
.series-post-title a:hover { color: var(--ac); }
.series-post-excerpt { font-size: 13px; color: var(--t2); line-height: 1.5; margin-bottom: 8px; }
.series-post-meta { font-size: 12px; color: var(--t2); }

/* ── blog_v3 additions ── */

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--ac); width: 0; z-index: 999;
  transition: width 0.1s linear;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--t2); margin-bottom: 16px;
}
.breadcrumb a { color: var(--t2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ac); }

/* Post layout with ToC sidebar */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
}
@media (min-width: 1100px) {
  .post-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
  .toc { position: sticky; top: 72px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.toc {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 8px;
  padding: 16px; font-size: 13px;
}
.toc-title { font-weight: 600; color: var(--t2); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.toc-link {
  display: block; color: var(--t2); text-decoration: none;
  padding: 3px 0; border-left: 2px solid transparent;
  padding-left: 8px; line-height: 1.4;
  transition: color 0.15s, border-color 0.15s;
}
.toc-link:hover { color: var(--ac); border-left-color: var(--ac); }
.toc-h3 { padding-left: 20px; font-size: 12px; }

/* Cover image */
.post-cover {
  width: 100%; max-height: 400px; object-fit: cover;
  border-radius: 8px; margin-bottom: 24px;
}
.post-cover-thumb {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 8px 8px 0 0; margin-bottom: 12px;
  display: block;
}

/* Star rating widget */
.star-widget {
  display: flex; align-items: center; gap: 4px;
  margin: 24px 0 8px; flex-wrap: wrap;
}
.star-label { font-size: 13px; color: var(--t2); margin-right: 4px; }
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--bd);
  padding: 2px; transition: color 0.1s, transform 0.1s;
  line-height: 1;
}
.star-btn:hover, .star-btn.active { color: #fbbf24; }
.star-btn:hover { transform: scale(1.15); }
.star-avg { font-size: 13px; color: var(--t2); margin-left: 8px; }

/* Like/reaction bar */
.like-btn {
  background: var(--s2); border: 1px solid var(--bd); color: var(--t1);
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  font-size: 14px; transition: all 0.15s;
}
.like-btn:hover { border-color: var(--ac); color: var(--ac); }
.like-btn.active { background: var(--ac)20; border-color: var(--ac); color: var(--ac); }

/* Bookmark button */
.bookmark-btn {
  background: none; border: 1px solid var(--bd); color: var(--t2);
  padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: all 0.15s;
}
.bookmark-btn:hover, .bookmark-btn.active { color: #fbbf24; border-color: #fbbf24; }

/* Crawler badges */
.crawler-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crawler-badge {
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 4px; padding: 1px 6px; font-size: 11px; color: var(--t2);
}

/* Author avatar image */
.author-avatar-img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bd); flex-shrink: 0;
}
.comment-avatar-img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
}

/* Featured section on blog index */
.featured-section { margin-bottom: 32px; }
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.featured-card {
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 3px solid var(--ac);
}
.featured-cover { width: 100%; height: 160px; object-fit: cover; }
.featured-body {
  padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.featured-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.featured-card h2 { font-size: 17px; font-weight: 600; margin: 0; }
.featured-card h2 a { color: var(--t1); text-decoration: none; }
.featured-card h2 a:hover { color: var(--ac); }
.featured-card .meta { display: flex; align-items: center; gap: 6px; margin-top: auto; }

/* Newsletter bar */
.newsletter-bar {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border-top: 1px solid var(--bd); padding: 32px 24px;
}
.newsletter-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.newsletter-copy { flex: 1; min-width: 200px; }
.newsletter-copy strong { display: block; font-size: 16px; margin-bottom: 4px; }
.newsletter-copy span { font-size: 13px; color: var(--t2); }
.newsletter-form {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  background: var(--s2); border: 1px solid var(--bd); color: var(--t1);
  padding: 8px 14px; border-radius: 6px; font-size: 14px; outline: none;
  width: 220px;
}
.newsletter-form input[type="email"]:focus { border-color: var(--ac); }

/* Community boards */
.boards-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.board-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 10px; padding: 18px 20px;
  text-decoration: none; color: var(--t1);
  transition: border-color 0.15s, transform 0.1s;
}
.board-card:hover { border-color: var(--ac); }
.board-icon { font-size: 28px; width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.board-info { flex: 1; }
.board-name { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.board-desc { font-size: 13px; color: var(--t2); margin: 0; }

/* Threads list */
.threads-list { display: flex; flex-direction: column; gap: 0; }
.thread-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--bd);
  text-decoration: none; color: var(--t1);
}
.thread-card:hover .thread-title { color: var(--ac); }
.thread-card.pinned { background: var(--ac)08; padding: 16px 12px; border-radius: 6px; margin-bottom: 2px; }
.thread-info { flex: 1; }
.thread-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.thread-meta { font-size: 12px; color: var(--t2); display: flex; gap: 6px; }
.thread-stats { font-size: 12px; color: var(--t2); text-align: right; white-space: nowrap; }
.thread-stats span { display: block; }

/* Thread page */
.thread-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--bd); }
.thread-op {
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 10px; padding: 20px 24px;
}
.reply-card {
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 12px;
}
.reply-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 13px;
}
.reply-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ac); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.reply-body { font-size: 14px; line-height: 1.7; }

/* Analytics tab */
.analytics-bar {
  height: 10px; border-radius: 4px; background: var(--ac);
  min-width: 4px; display: inline-block; vertical-align: middle;
}

/* Notification prefs */
.notify-prefs label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t1); cursor: pointer; }

/* Guest comment form */
.guest-comment-form input[type="text"],
.guest-comment-form input[type="email"] {
  width: 100%;
  background: var(--s2); border: 1px solid var(--bd); color: var(--t1);
  padding: 8px 12px; border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;
}
.guest-comment-form input:focus { border-color: var(--ac); }

/* Views-over-time chart */
.vc-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.vc-bar { width: 100%; background: var(--ac); border-radius: 2px 2px 0 0; min-height: 2px; transition: opacity .15s; }
.vc-bar-wrap:hover .vc-bar { opacity: .7; }
.vc-label { font-size: 9px; color: var(--t2); white-space: nowrap; overflow: hidden; margin-top: 3px; }
