.blog-article main :is(h1, h2, h3) { text-wrap: balance; }
.blog-article main :is(a, summary, [tabindex]):focus-visible { outline: 3px solid #53b97c; outline-offset: 5px; }
.blog-article-title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.08; }
.blog-article-figure { margin: 0 0 36px; }
.blog-article-figure img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 16px; }
@media (min-width: 768px) {
  .blog-article-figure { width: 75%; }
}
.blog-article-intro p, .blog-section > p, .blog-section > ul, .blog-faq > p, .blog-article-cta > p { color: #55625a; font-size: 17px; line-height: 1.85; }
.blog-article-intro p + p, .blog-section > p + p { margin-top: 18px; }
.blog-toc { margin-top: 36px; padding: 28px 32px; background: #f0f6f1; border: 1px solid #d9e5dc; border-radius: 16px; }
.blog-toc h2 { font-size: 27px; line-height: 1.2; font-weight: 800; margin-bottom: 16px; }
.blog-toc ol { list-style: decimal; padding-left: 22px; }
.blog-toc li { padding-left: 5px; margin-top: 9px; font-size: 16px; line-height: 1.6; }
.blog-toc a, .blog-service-link a, .blog-back-link { color: #057230; text-decoration: underline; text-underline-offset: 4px; }
.blog-section { margin-top: 52px; scroll-margin-top: 28px; }
.blog-section h2 { font-size: clamp(29px, 3vw, 38px); font-weight: 800; line-height: 1.15; margin-bottom: 22px; }
.blog-section h3 { font-size: 27px; font-weight: 700; line-height: 1.25; margin: 28px 0 12px; }
.blog-bullet-list { list-style: disc; margin: 22px 0; padding-left: 24px; }
.blog-bullet-list li { margin-top: 10px; padding-left: 4px; }
.blog-service-link { margin-top: 24px; font-weight: 600; }
.blog-comparison-wrap { max-width: 100%; overflow-x: auto; margin-top: 28px; border: 1px solid #d9e5dc; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.blog-comparison { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.75; }
.blog-comparison caption { text-align: left; padding: 16px 20px; color: #55625a; font-size: 13px; }
.blog-comparison th, .blog-comparison td { text-align: left; vertical-align: top; padding: 18px; border-top: 1px solid #d9e5dc; overflow-wrap: break-word; }
.blog-comparison thead th { color: #fff; background: #182b20; font-weight: 700; }
.blog-comparison thead th:first-child { width: 22%; }
.blog-comparison tbody th { font-weight: 600; color: #263a2d; }
.blog-comparison td { color: #55625a; }
.blog-comparison tbody tr:nth-child(even) { background: #f5f8f5; }
.blog-faq { border-bottom: 1px solid #d9e5dc; }
.blog-faq:first-of-type { border-top: 1px solid #d9e5dc; }
.blog-faq summary { padding: 20px 4px; cursor: pointer; font-size: 22px; font-weight: 700; font-family: "Sofia Sans Condensed", sans-serif; line-height: 1.35; }
.blog-faq[open] summary { color: #057230; }
.blog-faq > p { padding: 0 4px 22px; }
.blog-article-cta { background: #edf4ee; border: 1px solid #d9e5dc; border-radius: 16px; padding: 32px; margin-top: 48px; }
.blog-article-cta .blog-article-eyebrow { color: #057230; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.blog-article-cta h2 { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 12px 0 18px; }
.blog-article-cta .btn { margin-top: 24px; }
.blog-back-link { display: inline-flex; gap: 10px; margin-top: 32px; line-height: 1.6; }
@media (max-width: 600px) {
  .blog-article-intro p, .blog-section > p, .blog-section > ul, .blog-faq > p, .blog-article-cta > p { font-size: 16px; }
  .blog-toc { padding: 23px; }
  .blog-section { margin-top: 40px; }
  .blog-article-figure { margin-bottom: 26px; }
  .blog-article-cta { padding: 24px; }
  .blog-article-cta h2 { font-size: 30px; }
  .blog-article-cta .btn { width: 100%; }
}

.blog-article-figure--contain { background: #f0f3ef; border-radius: 16px; }
.blog-article-figure--contain img { object-fit: contain; height: 520px; max-height: none; }
.blog-article-figure figcaption { margin-top: 10px; color: #55625a; font-size: 12px; line-height: 1.6; }
.blog-article-figure figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.blog-detail-image { margin: 28px 0; }
.blog-detail-image img { width: min(100%, 760px); height: auto; max-height: 420px; object-fit: contain; background: #f0f3ef; border-radius: 12px; }
.blog-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.blog-article-cta .blog-cta-actions .btn { margin-top: 0; white-space: normal; text-align: center; }
.blog-contact-button { color: #057230; border: 1px solid #057230; background: transparent; }
.blog-contact-button:hover { background: #dcebdd; }
.blog-related { margin-top: 52px; }
.blog-related > h2 { font-size: 34px; line-height: 1.2; font-weight: 800; margin-bottom: 0; }
.blog-related-rail {
  --site-gutter: 1rem;
  --site-inline: max(var(--site-gutter), calc((100% - min(80rem, calc(100% - var(--site-gutter) * 2))) / 2));
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
  margin: 24px 0 0;
  padding: 4px var(--site-inline) 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: var(--site-inline);
}
.blog-related-rail::-webkit-scrollbar { display: none; }
.blog-related-rail.is-dragging { cursor: grabbing; }
.blog-related-rail > * {
  flex: 0 0 auto;
  width: min(78vw, 420px);
  min-width: 0;
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d9e5dc;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(32, 58, 39, 0.05);
}
.blog-related-card img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; pointer-events: none; }
.blog-related-card h3 { margin: 20px 24px 12px; font-size: 22px; line-height: 1.2; font-weight: 800; }
.blog-related-card p {
  margin: 0 24px 24px;
  color: #55625a;
  font-size: 15px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-related-card:hover h3 { color: #057230; }

@media (min-width: 768px) {
  .blog-related-rail { --site-gutter: 2rem; }
  /* Tablet: carousel with ~2 cards peeking */
  .blog-related-rail > * { width: min(52vw, 380px); }
}

/* Desktop: static 3-col grid. Mobile/tablet: drag carousel. */
@media (min-width: 1024px) {
  .blog-related-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
    cursor: default;
    user-select: auto;
    touch-action: auto;
    padding-bottom: 0;
  }
  .blog-related-rail > * {
    width: auto;
    flex: none;
  }
}

@media (max-width: 600px) {
  .blog-article-figure--contain img { height: 390px; }
  .blog-cta-actions { flex-direction: column; align-items: stretch; }
  .blog-related-card h3 { margin-left: 20px; margin-right: 20px; font-size: 24px; }
  .blog-related-card p { margin-left: 20px; margin-right: 20px; }
}
