/* Professional Pioneers v1.9.119 archive filter containment and bottom-action alignment */

/*
 * Archive filter cards reuse homepage class names. Fully reset the copied
 * homepage title positioning so the archive label cannot translate outside
 * its own button or overlap the protected icon column.
 */
.pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-tab,
.pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: initial !important;
  column-gap: 12px !important;
}

.pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-icon,
.pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-icon {
  grid-column: 1 !important;
  flex: none !important;
  min-width: 42px !important;
  max-width: 42px !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  transform: none !important;
  align-self: center !important;
  overflow: hidden !important;
}

.pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-copy {
  grid-column: 2 !important;
  display: flex !important;
  flex: none !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
  overflow: hidden !important;
  text-align: start !important;
}

.pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-title,
.pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-label,
.pp-archive-page-shell .pp-archive-toolbar .pp-work-name,
.pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-state {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: block !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  translate: none !important;
  text-align: start !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-title,
.pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-label,
.pp-archive-page-shell .pp-archive-toolbar .pp-work-name {
  line-height: 1.2 !important;
  justify-content: flex-start !important;
}

.pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-state {
  line-height: 1.25 !important;
}

html[dir="rtl"] .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn,
body.rtl .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn {
  grid-template-columns: minmax(0, 1fr) 42px !important;
}

html[dir="rtl"] .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-icon,
html[dir="rtl"] .pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-icon,
body.rtl .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-icon,
body.rtl .pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-icon {
  grid-column: 2 !important;
}

html[dir="rtl"] .pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-copy,
body.rtl .pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-copy {
  grid-column: 1 !important;
  align-items: flex-start !important;
}

/*
 * Desktop: Start a Project and Back to Home sit on opposite sides of one
 * aligned row. Mobile: Start a Project appears first, directly above Back.
 */
.pp-archive-bottom-actions,
html[dir="rtl"] .pp-archive-bottom-actions,
body.rtl .pp-archive-bottom-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 16px !important;
  direction: ltr !important;
}

.pp-archive-bottom-actions .pp-archive-bottom-start-link {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  margin: 0 !important;
}

.pp-archive-bottom-actions .pp-archive-bottom-navigation {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: start !important;
  margin: 0 !important;
}

html[dir="rtl"] .pp-archive-bottom-actions .pp-archive-bottom-start-link,
body.rtl .pp-archive-bottom-actions .pp-archive-bottom-start-link {
  grid-column: 1 !important;
  justify-self: start !important;
}

html[dir="rtl"] .pp-archive-bottom-actions .pp-archive-bottom-navigation,
body.rtl .pp-archive-bottom-actions .pp-archive-bottom-navigation {
  grid-column: 2 !important;
  justify-self: end !important;
}

.pp-archive-bottom-actions .pp-page-btn {
  direction: ltr;
}

html[dir="rtl"] .pp-archive-bottom-actions .pp-page-btn,
body.rtl .pp-archive-bottom-actions .pp-page-btn {
  direction: rtl;
}

@media (max-width: 767px) {
  .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 9px !important;
  }

  .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-icon,
  .pp-archive-page-shell .pp-archive-toolbar .pp-work-filter-tab-icon {
    min-width: 34px !important;
    max-width: 34px !important;
    width: 34px !important;
    height: 34px !important;
  }

  html[dir="rtl"] .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn,
  body.rtl .pp-archive-page-shell .pp-archive-toolbar .pp-archive-filter-btn {
    grid-template-columns: minmax(0, 1fr) 34px !important;
  }

  .pp-archive-bottom-actions,
  html[dir="rtl"] .pp-archive-bottom-actions,
  body.rtl .pp-archive-bottom-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .pp-archive-bottom-actions .pp-archive-bottom-start-link {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  .pp-archive-bottom-actions .pp-archive-bottom-navigation {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  .pp-archive-bottom-actions .pp-archive-bottom-navigation .pp-page-btn {
    width: 100% !important;
  }
}
