.ams-blog-admin-entry {
  width: min(1120px, calc(100% - 48px));
  margin: -12px auto 20px;
  display: flex;
  justify-content: flex-end;
}

.ams-blog-admin-entry a {
  min-height: 32px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  color: rgba(29, 116, 104, .66);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.ams-blog-admin-entry a:hover,
.ams-blog-admin-entry a:focus-visible {
  color: #05322B;
  background: rgba(37, 137, 122, .07);
}

/* Keep database-rendered card headings visually identical to the original text headings. */
.ams-guide-card h3 > .ams-guide-card__title-link {
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.ams-guide-card__image {
  margin-top: 18px;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #EEE8E7;
}

.ams-guide-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ams-blog-pagination {
  width: min(1120px, calc(100% - 48px));
  margin: 4px auto 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.ams-blog-pagination a,
.ams-blog-pagination span {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 9px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(5, 50, 43, .12);
  border-radius: 9px;
  color: #05322B;
  background: #FFFFFF;
  text-decoration: none;
}

.ams-blog-pagination [aria-current="page"] {
  color: #FFFFFF;
  background: #05322B;
}

.ams-blog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 20px;
  border: 1px solid rgba(5, 50, 43, .1);
  border-radius: 14px;
  color: rgba(5, 50, 43, .72);
  background: #FFFFFF;
  text-align: center;
}

@media (max-width: 640px) {
  .ams-blog-admin-entry { width: calc(100% - 32px); }
  .ams-blog-pagination { width: calc(100% - 32px); }
}
