/* Public blog */
.brand-link { color: inherit; text-decoration: none; }

/* Top nav — real links to the tools (this is a static page, no SPA tabs). */
.blog-nav {
  max-width: 980px; margin: 0 auto; padding: 14px 20px;
}
.blog-nav-links {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.blog-nav-links a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.blog-nav-links a:hover { background: var(--panel-2); color: var(--accent); }
.blog-nav-links a.is-active { background: var(--accent); color: #fff; }
.blog { max-width: 820px; margin: 0 auto; padding: 8px 0 48px; }
.blog-title { font-size: 30px; letter-spacing: -0.02em; margin: 8px 0 24px; }

.post-list { display: grid; gap: 14px; }
.post-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; transition: transform .12s ease, border-color .12s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-card-cover { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.post-card-img { margin: -18px -20px 12px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 8; background: var(--panel-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-img { width: 100%; max-height: 340px; border-radius: 16px; overflow: hidden; margin-bottom: 16px; background: var(--panel-2); }
.post-cover-img img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }

.blog-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.pg-btn { min-width: 38px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.pg-btn:hover:not(:disabled):not(.is-active) { border-color: var(--accent); color: var(--accent); }
.pg-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-dots { align-self: center; color: var(--muted); padding: 0 4px; }
.post-card h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.post-card p { margin: 0 0 10px; }
.post-card-meta { }

.post { }
.back { display: inline-block; text-decoration: none; margin-bottom: 18px; font-size: 13px; }
.back:hover { color: var(--accent); }
.post-cover { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.post h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.2; }
.post-meta { font-size: 13px; margin-bottom: 28px; }

.post-body { font-size: 16px; line-height: 1.7; }
.post-body h2 { font-size: 24px; letter-spacing: -0.01em; margin: 32px 0 12px; }
.post-body h3 { font-size: 20px; margin: 26px 0 10px; }
.post-body h4 { font-size: 17px; margin: 22px 0 8px; }
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 26px; }
.post-body li { margin: 4px 0; }
.post-body blockquote {
  margin: 0 0 16px; padding: 8px 16px; border-left: 3px solid var(--accent);
  background: var(--panel-2); border-radius: 0 6px 6px 0; color: var(--muted);
}
.post-body pre {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin: 0 0 16px;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
}
.post-body :not(pre) > code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
.post-body a { color: var(--accent); }
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
