/**
 * Bridge styles — plugin grids inside GeneratePress + RemoteDesk theme.
 */

body.rd-resource-listing-page .entry-header,
body.rd-resource-listing-page .page-header,
body.rd-hub-layout.rd-resource-listing-page .entry-title {
  display: none !important;
}

body.rd-resource-listing-page .site-content,
body.rd-resource-listing-page .content-area,
body.rd-resource-listing-page .site-main,
body.rd-resource-listing-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.rd-resource-page-wrap {
  padding-bottom: 4rem;
}

.rd-resource-page-wrap .rd-resource-hub,
.rd-resource-grid-wrap .rd-resource-hub {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.rd-resource-page-wrap .rd-layout-3-col,
.rd-resource-grid-wrap .rd-layout-3-col,
.rd-resource-strip .rd-layout-3-col {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

@media (max-width: 960px) {
  .rd-resource-page-wrap .rd-layout-3-col,
  .rd-resource-grid-wrap .rd-layout-3-col,
  .rd-resource-strip .rd-layout-3-col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 580px) {
  .rd-resource-page-wrap .rd-layout-3-col,
  .rd-resource-grid-wrap .rd-layout-3-col,
  .rd-resource-strip .rd-layout-3-col {
    grid-template-columns: 1fr !important;
  }
}

.rd-resource-page-wrap .rd-plugin-ui .rd-btn--card,
.rd-resource-strip .rd-plugin-ui .rd-btn--card {
  width: auto !important;
  align-self: flex-start;
  padding: 0.5rem 1.125rem !important;
  font-size: 0.75rem !important;
  border-radius: 9999px !important;
}

.rd-hero__title--single-line {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

/* ── Resource single inner page (whitepaper / report detail) ── */
body.rd-resource-single-page .site-content,
body.rd-resource-single-page #content,
body.rd-resource-single-page .content-area,
body.rd-resource-single-page .site-main,
body.rd-resource-single-page .entry-content,
body.rd-resource-single-page .inside-article {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

body.rd-resource-single-page .site.grid-container,
body.rd-resource-single-page .site-content .content-area,
body.rd-resource-single-page .site-content .site-main {
  width: 100% !important;
  max-width: none !important;
}

body.rd-resource-single-page article.rd-single-resource,
body.rd-resource-single-page .rd-single-page,
body.rd-resource-single-page .rd-single-page__container {
  float: none !important;
  clear: both !important;
}

body.rd-resource-single-page .entry-header,
body.rd-resource-single-page .page-header {
  display: none !important;
}

body.rd-resource-single-page .separate-containers .inside-article,
body.rd-resource-single-page .one-container .site-content {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
