.blog-overview-list,
.blog-detail {
  --wagtail-blog-border: var(--bs-border-color-translucent, rgba(15, 23, 42, 0.12));
  --wagtail-blog-surface: var(--bs-body-bg, #fff);
  --wagtail-blog-surface-muted: color-mix(in srgb, var(--bs-body-bg, #fff) 94%, var(--bs-primary, #0d6efd) 6%);
  --wagtail-blog-shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.08);
  --wagtail-blog-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --wagtail-blog-muted: var(--bs-secondary-color, #6c757d);
  --wagtail-blog-radius-lg: min(1.5rem, var(--bs-border-radius-xl, 1.5rem));
  --wagtail-blog-radius-md: min(1rem, var(--bs-border-radius-lg, 1rem));
  --wagtail-blog-content-width: 48rem;
}

.blog-meta {
  color: var(--wagtail-blog-muted);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.blog-meta__prefix {
  font-weight: 600;
}

.blog-overview-hero__surface,
.blog-overview-card,
.blog-detail__sidebar-card {
  background: var(--wagtail-blog-surface);
  border: 1px solid var(--wagtail-blog-border);
  box-shadow: var(--wagtail-blog-shadow-sm);
}

.blog-overview-hero__surface {
  border-radius: var(--wagtail-blog-radius-lg);
  padding: clamp(1.5rem, 2vw, 2.5rem);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bs-primary, #0d6efd) 8%, var(--bs-body-bg, #fff)) 0%, var(--wagtail-blog-surface) 100%);
}

.blog-overview-hero__eyebrow {
  color: var(--bs-primary, #0d6efd);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-overview-hero__title {
  max-width: 16ch;
}

.blog-overview-hero__meta {
  color: var(--wagtail-blog-muted);
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.blog-overview-card {
  border-radius: var(--wagtail-blog-radius-lg);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.blog-overview-card:hover,
.blog-overview-card:focus-within {
  border-color: color-mix(in srgb, var(--bs-primary, #0d6efd) 22%, var(--wagtail-blog-border));
  box-shadow: var(--wagtail-blog-shadow-lg);
  transform: translateY(-2px);
}

.blog-overview-card__image-link {
  display: block;
  height: 100%;
  background: var(--wagtail-blog-surface-muted);
}

.blog-overview-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.blog-overview-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: clamp(1.5rem, 2vw, 2rem);
}

.blog-overview-card__title {
  margin-bottom: 0;
}

.blog-overview-card__title a,
.blog-detail__recent-title a {
  color: inherit;
  text-decoration: none;
}

.blog-overview-card__title a:hover,
.blog-overview-card__title a:focus,
.blog-detail__recent-title a:hover,
.blog-detail__recent-title a:focus {
  color: var(--bs-primary, #0d6efd);
  text-decoration: underline;
}

.blog-overview-card__intro {
  color: var(--bs-body-color, inherit);
}

.blog-overview-card__intro > *:last-child,
.blog-detail__intro > *:last-child,
.blog-detail__body > *:last-child {
  margin-bottom: 0;
}

.blog-overview-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.blog-overview-card__cta {
  align-self: flex-start;
}

.blog-overview-empty {
  border-radius: var(--wagtail-blog-radius-lg);
  padding: 1.25rem 1.5rem;
}

.blog-detail__main {
  max-width: var(--wagtail-blog-content-width);
}

.blog-detail__hero-copy {
  display: grid;
  gap: 1rem;
}

.blog-detail__eyebrow {
  min-height: 1.5rem;
}

.blog-detail__title {
  margin-bottom: 0;
}

.blog-detail__intro {
  color: var(--bs-secondary-color, #6c757d);
}

.blog-detail__lead-image {
  background: var(--wagtail-blog-surface-muted);
  border-radius: var(--wagtail-blog-radius-lg);
  overflow: hidden;
  box-shadow: var(--wagtail-blog-shadow-lg);
}

.blog-detail__lead-image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.blog-detail__body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-detail__sidebar {
  position: sticky;
  top: 2rem;
}

.blog-detail__sidebar-card {
  border-radius: var(--wagtail-blog-radius-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.blog-detail__recent-list {
  display: grid;
  gap: 1rem;
}

.blog-detail__recent-item {
  border-top: 1px solid var(--wagtail-blog-border);
  padding-top: 1rem;
}

.blog-detail__recent-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.blog-detail__recent-title {
  margin-bottom: 0;
}

@media (max-width: 1199.98px) {
  .blog-detail__sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .blog-overview-hero__surface,
  .blog-overview-card__body,
  .blog-detail__sidebar-card {
    padding: 1.25rem;
  }

  .blog-overview-card__image {
    min-height: 220px;
  }

  .blog-detail__title {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }
}
