.sp-blog__list {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem;
}

.sp-blog__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.sp-blog__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(27, 52, 47, 0.12);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sp-blog__card:hover,
.sp-blog__card:focus-visible {
  border-color: #c0a76e;
  transform: translateY(-2px);
}

.sp-blog__card time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #6b7c76;
}

.sp-blog__card h2,
.sp-blog__card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #1b342f;
}

.sp-blog__card p {
  margin: 0;
  color: #52645e;
  line-height: 1.6;
  flex: 1;
}

.sp-blog__card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1b342f;
}

.sp-blog__empty {
  text-align: center;
  color: #52645e;
}

.sp-blog__pager {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* Override theme style.css `.pagination { display: flow-root }` (was stacking vertically). */
.sp-blog__pager .pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 !important;
  padding: 0;
  text-align: center;
}

.sp-blog__pager .page-item {
  display: inline-flex;
  margin: 0;
}

.sp-blog__pager .page-item .page-link,
.sp-blog__pager .pagination > li > a,
.sp-blog__pager .pagination > li > span {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem !important;
  border: 1px solid rgba(27, 52, 47, 0.14) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #1b342f !important;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: none !important;
}

.sp-blog__pager .page-item .page-link:hover,
.sp-blog__pager .pagination > li > a:hover {
  border-color: #c0a76e !important;
  color: #1b342f !important;
  background: #fbfbf8 !important;
  z-index: 1;
}

.sp-blog__pager .page-item.active .page-link,
.sp-blog__pager .pagination > .active > span,
.sp-blog__pager .pagination > .active > a {
  background: #1b342f !important;
  border-color: #1b342f !important;
  color: #f5f5f0 !important;
}

.sp-blog__pager .page-item.disabled .page-link,
.sp-blog__pager .pagination > .disabled > span,
.sp-blog__pager .pagination > .disabled > a {
  color: #9aa8a3 !important;
  background: #f5f5f0 !important;
  border-color: rgba(27, 52, 47, 0.08) !important;
}

.sp-blog-article__body {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.sp-blog-article__prose {
  max-width: 46rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2c3d38;
  overflow-x: auto;
}

.sp-blog-article__prose h2,
.sp-blog-article__prose h3 {
  margin: 1.6rem 0 0.7rem;
  color: #1b342f;
}

.sp-blog-article__prose p {
  margin: 0 0 1rem;
}

.sp-blog-article__prose ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.2rem;
}

/* TinyMCE often injects float:left/right on tables — that pulls them out of flow and hides them. */
.sp-blog-article__prose table {
  float: none !important;
  display: table !important;
  width: 100% !important;
  max-width: 100%;
  margin: 1.35rem 0;
  border-collapse: collapse;
  table-layout: auto;
  clear: both;
}

.sp-blog-article__prose thead th,
.sp-blog-article__prose th {
  background: #1b342f;
  color: #f5f5f0;
  font-weight: 600;
  text-align: start;
}

.sp-blog-article__prose th,
.sp-blog-article__prose td {
  border: 1px solid rgba(27, 52, 47, 0.16);
  padding: 0.7rem 0.85rem;
  vertical-align: top;
}

.sp-blog-article__prose tbody tr:nth-child(even) td {
  background: rgba(27, 52, 47, 0.04);
}

.sp-blog-article__prose figure,
.sp-blog-article__prose .table {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  margin: 1.35rem 0;
}

.sp-blog-article__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.sp-blog-article__related h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  color: #1b342f;
}

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

.sp-blog-article .sp-svc__hero-copy time {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}
