.blog-article[data-astro-cid-kt6wuhv6] {
  border-top: none;
  padding-top: 40px;
  padding-bottom: 80px;
}

.blog-layout[data-astro-cid-kt6wuhv6] {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}

.blog-sidebar[data-astro-cid-kt6wuhv6] {
  display: block;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-sticky[data-astro-cid-kt6wuhv6] {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.back-link[data-astro-cid-kt6wuhv6] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s, transform .15s;
}

.back-link[data-astro-cid-kt6wuhv6]:hover {
  color: var(--text);
  transform: translateX(-3px);
}

.toc-wrapper[data-astro-cid-kt6wuhv6] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toc-label[data-astro-cid-kt6wuhv6] {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  opacity: .85;
}

.toc-list[data-astro-cid-kt6wuhv6] {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border-left: 1.5px solid var(--border);
}

.toc-list[data-astro-cid-kt6wuhv6] li[data-astro-cid-kt6wuhv6] {
  margin: 0;
  padding: 0;
}

.toc-link[data-astro-cid-kt6wuhv6] {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.45;
  text-decoration: none;
  font-weight: 500;
  opacity: .6;
  transition: color .2s, opacity .2s, font-weight .15s;
}

.toc-link[data-astro-cid-kt6wuhv6]:hover {
  color: var(--text);
  opacity: 1;
}

.toc-indicator[data-astro-cid-kt6wuhv6] {
  position: absolute;
  left: -1.5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: none;
  border-radius: 2px;
  transition: background-color .25s;
}

.toc-link[data-astro-cid-kt6wuhv6].active {
  color: var(--text);
  font-weight: 700;
  opacity: 1;
}

.toc-link[data-astro-cid-kt6wuhv6].active .toc-indicator[data-astro-cid-kt6wuhv6] {
  background: var(--accent);
}

.blog-main[data-astro-cid-kt6wuhv6] {
  max-width: 720px;
  min-width: 0;
  width: 100%;
}

.post-nav-mobile[data-astro-cid-kt6wuhv6] {
  display: none;
  margin-bottom: 24px;
}

.post-meta[data-astro-cid-kt6wuhv6] {
  margin-bottom: 14px;
}

.post-title[data-astro-cid-kt6wuhv6] {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 16px;
}

.post-excerpt[data-astro-cid-kt6wuhv6] {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.mobile-toc[data-astro-cid-kt6wuhv6] {
  display: none;
  margin: 20px 0 0;
  padding: 14px 18px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mobile-toc-summary[data-astro-cid-kt6wuhv6] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.mobile-toc-summary[data-astro-cid-kt6wuhv6]::-webkit-details-marker {
  display: none;
}

.mobile-toc-title[data-astro-cid-kt6wuhv6] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-toc-summary[data-astro-cid-kt6wuhv6] .chevron[data-astro-cid-kt6wuhv6] {
  transition: transform .2s;
  color: var(--text-muted);
}

.mobile-toc[data-astro-cid-kt6wuhv6][open] .mobile-toc-summary[data-astro-cid-kt6wuhv6] .chevron[data-astro-cid-kt6wuhv6] {
  transform: rotate(180deg);
}

.mobile-toc-list[data-astro-cid-kt6wuhv6] {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-toc-link[data-astro-cid-kt6wuhv6] {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color .15s;
}

.mobile-toc-link[data-astro-cid-kt6wuhv6]:hover, .mobile-toc-link[data-astro-cid-kt6wuhv6]:active {
  color: var(--accent);
}

.post-divider[data-astro-cid-kt6wuhv6] {
  height: 1px;
  background: var(--border);
  margin: 32px 0 40px;
}

.prose[data-astro-cid-kt6wuhv6] {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.prose[data-astro-cid-kt6wuhv6] p {
  margin: 0 0 1.5rem;
}

.prose[data-astro-cid-kt6wuhv6] h2 {
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 100px;
}

.prose[data-astro-cid-kt6wuhv6] h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 2rem 0 .8rem;
  scroll-margin-top: 100px;
}

.prose[data-astro-cid-kt6wuhv6] ul, .prose[data-astro-cid-kt6wuhv6] ol {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}

.prose[data-astro-cid-kt6wuhv6] li {
  margin-bottom: .5rem;
  line-height: 1.65;
}

.prose[data-astro-cid-kt6wuhv6] strong {
  font-weight: 700;
  color: var(--text);
}

.prose[data-astro-cid-kt6wuhv6] em {
  font-style: italic;
}

.prose[data-astro-cid-kt6wuhv6] blockquote {
  margin: 1.8rem 0;
  padding: 12px 0 12px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.prose[data-astro-cid-kt6wuhv6] blockquote p:last-child {
  margin-bottom: 0;
}

.prose[data-astro-cid-kt6wuhv6] hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.prose[data-astro-cid-kt6wuhv6] code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
}

.prose[data-astro-cid-kt6wuhv6] pre {
  margin: 1.8rem 0;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.prose[data-astro-cid-kt6wuhv6] pre code {
  padding: 0;
  background: none;
  border: none;
  font-size: .88rem;
  line-height: 1.55;
}

.prose[data-astro-cid-kt6wuhv6] a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-footer[data-astro-cid-kt6wuhv6] {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.post-pagination[data-astro-cid-kt6wuhv6] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.pagination-card[data-astro-cid-kt6wuhv6] {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.pagination-card[data-astro-cid-kt6wuhv6]:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.prev-card[data-astro-cid-kt6wuhv6]:hover {
  transform: translateX(-3px);
}

.next-card[data-astro-cid-kt6wuhv6] {
  justify-content: flex-end;
}

.next-card[data-astro-cid-kt6wuhv6]:hover {
  transform: translateX(3px);
}

.pagination-placeholder[data-astro-cid-kt6wuhv6] {
  display: block;
}

.pagination-icon[data-astro-cid-kt6wuhv6] {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color .15s, transform .15s;
}

.pagination-card[data-astro-cid-kt6wuhv6]:hover .pagination-icon[data-astro-cid-kt6wuhv6] {
  color: var(--accent);
}

.pagination-meta[data-astro-cid-kt6wuhv6] {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pagination-meta[data-astro-cid-kt6wuhv6].text-right {
  text-align: right;
}

.pagination-label[data-astro-cid-kt6wuhv6] {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pagination-title[data-astro-cid-kt6wuhv6] {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-contact-prompt[data-astro-cid-kt6wuhv6] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.post-contact-prompt[data-astro-cid-kt6wuhv6] p[data-astro-cid-kt6wuhv6] {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.5;
}

.btn[data-astro-cid-kt6wuhv6] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, background .15s, color .15s, opacity .15s;
}

.btn-primary[data-astro-cid-kt6wuhv6] {
  background: var(--text);
  color: var(--bg);
}

.btn-primary[data-astro-cid-kt6wuhv6]:hover {
  transform: translateY(-1px);
  opacity: .9;
}

@media (width <= 960px) {
  .blog-layout[data-astro-cid-kt6wuhv6] {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-sidebar[data-astro-cid-kt6wuhv6] {
    display: none;
  }

  .post-nav-mobile[data-astro-cid-kt6wuhv6] {
    display: block;
  }

  .mobile-toc[data-astro-cid-kt6wuhv6] {
    display: block;
  }
}

@media (width <= 640px) {
  .post-title[data-astro-cid-kt6wuhv6] {
    font-size: 1.85rem;
  }

  .post-excerpt[data-astro-cid-kt6wuhv6] {
    font-size: 1.05rem;
  }

  .prose[data-astro-cid-kt6wuhv6] {
    font-size: 1rem;
    line-height: 1.7;
  }

  .post-pagination[data-astro-cid-kt6wuhv6] {
    grid-template-columns: 1fr;
  }

  .next-card[data-astro-cid-kt6wuhv6] {
    justify-content: flex-start;
    flex-direction: row-reverse;
  }

  .next-card[data-astro-cid-kt6wuhv6] .pagination-meta[data-astro-cid-kt6wuhv6].text-right {
    text-align: left;
  }

  .post-contact-prompt[data-astro-cid-kt6wuhv6] {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn[data-astro-cid-kt6wuhv6] {
    width: 100%;
  }
}
