.mpm-category-posts {
  display: grid;
  gap: 1.25rem;
}

.mpm-category-posts-editor-preview {
  display: block;
}

.mpm-category-posts--list {
  display: flex;
  flex-direction: column;
}

@media (min-width: 700px) {
  .mpm-category-posts--columns-2,
  .mpm-category-posts--columns-3,
  .mpm-category-posts--columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mpm-category-posts--columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mpm-category-posts--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mpm-category-posts__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #ffffff;
  color: #002360;
  border: 1px solid rgba(0, 35, 96, 0.1);
  text-decoration: none;
  transition: border-color 150ms ease;
}

.mpm-category-posts__item:hover,
.mpm-category-posts__item:focus-visible {
  border-color: rgba(0, 35, 96, 0.28);
}

.mpm-category-posts__item--preview {
  cursor: default;
}

.mpm-category-posts__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3f8;
}

.mpm-category-posts__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpm-category-posts__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.mpm-category-posts__date {
  color: #4b617c;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.mpm-category-posts__status {
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #4b617c;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.mpm-category-posts__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.mpm-category-posts__excerpt {
  margin: 0;
  color: #4b617c;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.mpm-category-posts__button {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #002360;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.mpm-category-posts__item:hover .mpm-category-posts__button,
.mpm-category-posts__item:focus-visible .mpm-category-posts__button {
  background: #102e68;
}

@media (min-width: 760px) {
  .mpm-category-posts--list .mpm-category-posts__item {
    flex-direction: row;
  }

  .mpm-category-posts--list .mpm-category-posts__media {
    width: min(34%, 18rem);
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
  }

  .mpm-category-posts--list .mpm-category-posts__body {
    min-width: 0;
  }
}

.mpm-category-posts__pagination {
  margin-top: 1.5rem;
}

.mpm-category-posts__pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpm-category-posts__pagination a,
.mpm-category-posts__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 35, 96, 0.16);
  border-radius: 999px;
  color: #002360;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.mpm-category-posts__pagination a:hover,
.mpm-category-posts__pagination a:focus-visible,
.mpm-category-posts__pagination .current {
  border-color: #002360;
  background: #002360;
  color: #ffffff;
}

.mpm-category-posts__empty {
  margin: 0;
  color: #4b617c;
}

.mpm-category-title {
  margin-top: 0;
  margin-bottom: 0;
}

.mpm-category-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.625rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--category-eyebrow-background, #eef3f8);
  color: var(--category-eyebrow-color, #002360);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  vertical-align: top;
}

a.mpm-category-eyebrow:hover,
a.mpm-category-eyebrow:focus-visible {
  text-decoration: none;
  filter: brightness(0.96);
}

.mpm-category-eyebrow-editor-preview {
  display: inline-block;
}
