/* Blog components share the entry page's palette and system fonts. */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.site-nav a,
.text-link,
.breadcrumbs a,
.post-item a,
.blog-page .site-footer a {
  color: #0076e8;
  text-decoration: none;
}

.site-nav [aria-current="page"] {
  color: #111827;
  font-weight: 700;
}

.site-nav a:hover,
.text-link:hover,
.breadcrumbs a:hover,
.post-item a:hover,
.blog-page .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a:focus-visible,
.text-link:focus-visible,
.breadcrumbs a:focus-visible,
.post-item a:focus-visible,
.blog-page a:focus-visible {
  outline: 2px solid #0076e8;
  outline-offset: 4px;
}

.blog-header,
.blog-main {
  width: 100%;
  max-width: 824px;
  margin-inline: auto;
  text-align: left;
}

.text-link {
  display: inline-block;
  font-size: 0.9rem;
  white-space: nowrap;
}

.blog-intro,
.post-summary {
  color: #667085;
}

.blog-intro {
  margin: 10px 0 28px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-item {
  padding: 24px 0;
  border-bottom: 1px solid #e4e7ec;
}

.post-meta,
.post-category {
  margin: 0 0 8px;
  color: #667085;
  font-size: 0.85rem;
}

.post-category {
  color: #0076e8;
}

.post-item h2,
.post-item h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.post-item a {
  color: #111827;
}

.post-summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.blog-main {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.blog-page {
  padding-top: 36px;
  padding-bottom: 64px;
}

.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e4e7ec;
}

.blog-header .site-logo,
.blog-header .site-nav {
  margin: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
  color: #667085;
  font-size: 0.85rem;
}

.blog-main h1 {
  max-width: 760px;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.article-header {
  margin-bottom: 36px;
}

.article-header h1 {
  margin-bottom: 20px;
}

.article-body {
  max-width: 760px;
  line-height: 1.95;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body h2 {
  margin: 40px 0 16px;
  font-size: 1.3rem;
  line-height: 1.6;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.related-posts {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e4e7ec;
}

.related-posts > h2 {
  margin: 0;
  font-size: 1.25rem;
}

.related-posts > .text-link {
  margin-top: 24px;
}

.blog-page .site-footer p {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  body.blog-page {
    padding-top: 24px;
  }

  .blog-header .site-logo {
    width: 124px;
  }

  .blog-header .site-nav {
    gap: 20px;
  }

  .article-header {
    margin-bottom: 28px;
  }

  .article-body h2 {
    margin-top: 32px;
    font-size: 1.2rem;
  }
}
