.blog-page,
.article-page {
  color: var(--ink, #17221f);
  background: #fff;
}

.blog-hero {
  padding-top: 88px;
  padding-bottom: 42px;
  text-align: center;
}

.blog-eyebrow,
.back-to-blog {
  color: var(--brand, #128968);
  font-weight: 700;
  letter-spacing: .06em;
}

.blog-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
}

.blog-hero > p:last-child {
  color: var(--muted, #65746f);
  font-size: 18px;
}

.blog-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.blog-categories a {
  padding: 9px 16px;
  color: var(--muted, #65746f);
  border-radius: 999px;
  background: #f3f7f5;
}

.blog-categories a:hover,
.blog-categories a.is-active {
  color: #fff;
  background: var(--brand, #128968);
}

.blog-section { padding-bottom: 72px; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 28px; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  overflow: hidden;
  border: 1px solid #e4ece8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 69, 54, .06);
}

.article-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #edf4f1; }
.article-cover img,
.article-row-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.article-cover:hover img,
.article-row-cover:hover img { transform: scale(1.025); }
.article-card-body { padding: 22px; }
.article-card h3 { margin: 9px 0 10px; font-size: 22px; line-height: 1.4; }
.article-card h3 a,
.article-row h2 a,
.related-grid h3 a { color: inherit; }
.article-card-body > p:last-child,
.article-row-copy > p { color: var(--muted, #65746f); line-height: 1.75; }
.article-meta { margin: 0; color: var(--brand, #128968); font-size: 14px; }

.article-list { border-top: 1px solid #e5ece9; }
.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid #e5ece9;
}
.article-row h2 { margin: 8px 0 12px; font-size: 27px; line-height: 1.35; }
.article-row-cover { width: 240px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #edf4f1; }
.read-more { display: inline-block; margin-top: 6px; color: var(--brand, #128968); font-weight: 700; }
.empty-state { padding: 64px 20px; text-align: center; color: var(--muted, #65746f); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding-top: 30px; }
.pagination a { color: var(--brand, #128968); font-weight: 700; }

.article-container { width: min(820px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.article-header { padding-top: 76px; padding-bottom: 38px; }
.back-to-blog { display: inline-block; margin-bottom: 22px; }
.article-header h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 52px); line-height: 1.22; letter-spacing: -.02em; }
.article-summary { margin: 28px 0 0; color: #52615c; font-size: 20px; line-height: 1.75; }
.article-hero-image { display: block; width: 100%; height: auto; margin-top: 34px; border-radius: 18px; }

.article-content {
  padding-bottom: 58px;
  color: #26332f;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 { color: #17221f; line-height: 1.4; }
.article-content h1 { margin: 52px 0 22px; font-size: 34px; }
.article-content h2 { margin: 48px 0 20px; font-size: 28px; }
.article-content h3 { margin: 38px 0 16px; font-size: 22px; }
.article-content p { margin: 0 0 1.35em; }
.article-content ul,
.article-content ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.article-content li { margin: .45em 0; }
.article-content a { color: var(--brand, #128968); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { display: block; max-width: 100%; height: auto; margin: 30px auto; border-radius: 10px; }
.article-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--brand, #128968); background: #f4f8f6; color: #4a5a54; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 10px; background: #17211e; color: #ecf4f1; font-size: 14px; line-height: 1.65; }
.article-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-content :not(pre) > code { padding: 2px 6px; border-radius: 5px; background: #edf3f0; color: #145b48; }
.article-content .table-wrapper { max-width: 100%; margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-content table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; }
.article-content th,
.article-content td { padding: 11px 13px; border: 1px solid #dfe8e4; text-align: left; }
.article-content th { background: #f1f6f4; }
.article-content hr { margin: 44px 0; border: 0; border-top: 1px solid #dfe8e4; }

.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 64px; padding: 30px; border-radius: 18px; background: #edf7f3; }
.article-cta h2 { margin: 0 0 8px; font-size: 23px; }
.article-cta p { margin: 0; color: #52615c; line-height: 1.7; }
.article-cta-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.related-articles { padding-bottom: 78px; border-top: 1px solid #e3ebe7; }
.related-articles > h2 { margin: 34px 0 22px; font-size: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related-grid article { padding: 20px; border-radius: 14px; background: #f6f8f7; }
.related-grid h3 { margin: 8px 0; font-size: 19px; line-height: 1.45; }
.related-grid article > p:last-child { margin: 0; color: var(--muted, #65746f); line-height: 1.65; }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .article-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .article-cover { aspect-ratio: auto; }
}

@media (max-width: 640px) {
  .blog-hero { padding-top: 52px; padding-bottom: 30px; text-align: left; }
  .blog-hero > p:last-child { font-size: 16px; }
  .blog-categories { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 30px; scrollbar-width: none; }
  .blog-categories::-webkit-scrollbar { display: none; }
  .blog-categories a { flex: 0 0 auto; }
  .blog-section { padding-bottom: 50px; }
  .article-card { display: block; }
  .article-cover { aspect-ratio: 16 / 9; }
  .article-row { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .article-row h2 { font-size: 23px; }
  .article-row-cover { grid-row: 1; width: 100%; aspect-ratio: 16 / 8; }
  .article-container { width: calc(100% - 32px); }
  .article-header { padding-top: 46px; padding-bottom: 28px; }
  .article-header h1 { font-size: 33px; }
  .article-summary { font-size: 18px; }
  .article-content { font-size: 16px; line-height: 1.8; padding-bottom: 42px; }
  .article-content h1 { font-size: 28px; }
  .article-content h2 { margin-top: 40px; font-size: 25px; }
  .article-content h3 { font-size: 21px; }
  .article-cta { display: block; padding: 24px 20px; }
  .article-cta-actions { margin-top: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .article-container { width: calc(100% - 28px); }
  .article-header h1 { font-size: 30px; }
  .article-cta-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
