.blog-hero-sec {
  padding-top: clamp(28px, 6vw, 56px);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}

.tag-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tag-btn:hover {
  color: var(--text);
  box-shadow: var(--shadow-hover);
}

.tag-btn.is-active {
  background: var(--ink);
  color: var(--on-ink);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: clamp(40px, 8vw, 80px);
}

.post-empty {
  color: var(--text-muted);
  padding: 40px 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-panel);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-lift);
  min-width: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.post-meta time,
.related-card-time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 100%;
  overflow: hidden;
}

.post-title {
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 0;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

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

.post-sum {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}

.post-more {
  align-self: flex-start;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  font-size: 0.92rem;
}

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

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

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

.crumbs span[aria-hidden] {
  opacity: .5;
}

.article-hero {
  padding: 22px 0 8px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-readtime {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.35;
  margin: 0 0 16px;
}

.article-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 640px;
}

.dl-guide {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-panel);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lift);
  text-align: center;
}

.dl-guide-title {
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.dl-guide p {
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.85;
}

.dl-guide-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-wrap {
  margin-top: clamp(36px, 5vw, 56px);
}

.related-title {
  font-size: 1.2rem;
  margin: 0 0 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s ease, transform .2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 0.98rem;
  line-height: 1.6;
}

.postnav-grid {
display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(28px, 5vw, 48px);
}

.postnav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}

.postnav-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.postnav-card--next {
  text-align: right;
  align-items: flex-end;
}

.postnav-dir {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-dark);
}

.postnav-card-title {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 640px) {
  .postnav-grid {
    grid-template-columns: 1fr;
  }
  .postnav-card--next {
    text-align: left;
    align-items: flex-start;
  }
}

.dl-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  z-index: 60;
}

.dl-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dl-fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dl-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 11, 12, .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease;
  z-index: 100;
}

.dl-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dl-modal-panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg-panel);
  border-radius: var(--radius-panel);
  padding: clamp(28px, 5vw, 40px);
  box-shadow: var(--shadow-float);
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.dl-modal-overlay.is-open .dl-modal-panel {
  transform: translateY(0) scale(1);
}

.dl-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--ink-tint);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.dl-modal-brand {
  color: var(--accent-dark);
  font-size: 0.82rem;
  margin: 0 0 10px;
}

.dl-modal-title {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.dl-modal-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 24px;
}

.dl-modal-cta {
  display: inline-flex;
}
