/* ===============================
   TAG ARCHIVE PAGE
================================= */

/* Neutralizar layout de GeneratePress en páginas de etiqueta
   (mismo patrón que body.category en category.css) */
body.tag .site {
  overflow-x: hidden;
}

body.tag .site-content {
  display: block !important;
}

body.tag .content-area {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}

body.tag .widget-area {
  display: none !important;
}

body.tag .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tag .inside-article,
body.tag .inside-right-sidebar,
body.tag .inside-left-sidebar,
body.tag article:not(.sd-postcard) {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Contenedor real centrado, igual que en category */
body.tag .sd-front {
  width: 100%;
  padding-bottom: 80px;
}

body.tag .sd-front .sd-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ---------- Encabezados SEO ---------- */

.sd-tag-page .sd-tag-page__h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a2e;
  margin: 20px 0 8px;
}

.sd-tag-page .sd-tag-page__h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #4a5568;
  margin: 0 0 20px;
}

/* ---------- Paginación (misma que sd-category-page--vertical) ---------- */

.sd-tag-page .sd-vertical-pagination {
  margin: 28px 0 0;
  text-align: center;
}

.sd-tag-page .sd-vertical-pagination__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sd-tag-page .sd-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #5d6774;
  transition: background 0.15s ease, color 0.15s ease;
}

.sd-tag-page .sd-page-numbers:not(.current):hover {
  background: rgba(11, 118, 196, 0.10);
  color: #0b79b7;
}

.sd-tag-page .sd-page-numbers.current {
  background: #0b86d8;
  color: #fff;
}

.sd-tag-page .sd-page-numbers.prev,
.sd-tag-page .sd-page-numbers.next {
  min-width: auto;
  gap: 8px;
  font-weight: 500;
}

/* ---------- Texto SEO (sin recuadro) ---------- */

.sd-tag-seo-text {
  margin: 20px 0 48px;
}

.sd-tag-seo-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 10px;
}

.sd-tag-seo-text p:last-child {
  margin-bottom: 0;
}
