.blog-hero {
  padding-top: 48px;
  padding-bottom: 8px;
}

.post-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-filter {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: none;
}

.tag-filter:hover {
  background: var(--bg-panel);
}

.tag-filter.on {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--on-accent);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-grid-related {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .post-grid,
  .post-grid-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .post-grid,
  .post-grid-related {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
}

.post-card:hover {
  background: var(--bg-panel);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.post-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--info);
  background: var(--info-bg);
  color: var(--info);
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.post-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.post-more {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dark);
}

.post-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px 0;
}

.crumbs {
  margin-top: 1.4rem;
  padding-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent-dark);
}

.crumbs em {
  font-style: normal;
  color: var(--border);
}

.post-hero {
  padding-top: 24px;
  padding-bottom: 8px;
}

.prose {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.prose h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 44px;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.prose h2::before {
  content: "##";
  color: var(--hash);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.prose h3::before {
  content: "###";
  color: var(--hash);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 4px;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-panel2);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose blockquote {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  color: var(--text-muted);
}

.prose pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--ink);
  border-radius: var(--radius);
  overflow-x: auto;
}

.prose pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--nav-text);
  line-height: 1.6;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-dark);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}

.prose th {
  background: var(--bg-panel);
  font-weight: 700;
}

.post-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel2);
  padding: 28px;
  margin-top: 40px;
}

.post-cta-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}

.post-cta-text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.post-cta-acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.related-block {
  margin-top: 48px;
}

.post-nav {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.post-nav-link {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}

.post-nav-link:hover {
  background: var(--bg-panel);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.post-nav-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.dlm-veil {
  position: fixed;
  inset: 0;
  background: var(--veil);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.dlm-veil.open {
  opacity: 1;
  visibility: visible;
}

.dlm {
  position: relative;
  width: min(420px, 88vw);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.dlm-veil.open .dlm {
  transform: translateY(0);
}

.dlm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.dlm-close:hover {
  background: var(--bg-panel2);
}

.dlm-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.dlm-text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.dlm-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}