/**
 * Restyle leftover centered circuit-graphic page heroes to match the
 * updated editorial hero used on News / In the News / singles
 * (.hero.policy-byte-banner in single-post.css). 
 * Also restore visible spacing on the Team member grid.
 * (.hero.policy-byte-banner in single-post.css). Also restore visible
 * spacing on the Team member grid.
 */

/* Shared tokens already defined in single-post.css :root */

.ari-research .arr-hero,
.ari-policy-bytes .arr-hero,
.ari-team-v2 .atv2-hero,
.page-hero {
  background-image: none !important;
  background-color: #151c42 !important;
  background-size: auto !important;
  height: auto !important;
  min-height: 480px !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 80px max(10px, calc((100vw - 1280px) / 2 + 8px)) 48px !important;
  box-sizing: border-box !important;
  border-bottom: 3px solid #141414;
}

/* Shortcode heroes sit inside a boxed Elementor column. Break out to viewport
   width so they match the full-bleed News / Careers header. */
.ari-research .arr-hero,
.ari-policy-bytes .arr-hero,
.ari-team-v2 .atv2-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.ari-research .arr-hero-inner,
.ari-policy-bytes .arr-hero-inner,
.ari-team-v2 .atv2-hero-inner,
.page-hero .hero-inner {
  text-align: left !important;
  max-width: 720px !important;
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
}

.ari-research .arr-hero h1,
.ari-policy-bytes .arr-hero h1,
.ari-team-v2 .atv2-hero h1,
.page-hero .hero-container h2 {
  text-align: left !important;
  width: 100% !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.08 !important;
  font-size: clamp(36px, 4.6vw, 58px) !important;
  color: #fff !important;
  margin: 0 0 18px !important;
}

.ari-research .arr-hero p,
.ari-policy-bytes .arr-hero p,
.ari-team-v2 .atv2-hero p,
.page-hero .hero-container p {
  text-align: left !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Our Priorities (1314) and Our Values (1719): first Elementor banner */
.page-id-1314 .elementor-element-3d6ac71,
.page-id-1719 .elementor-element-3d6ac71 {
  background-image: none !important;
  background-color: #151c42 !important;
  min-height: 480px !important;
  justify-content: flex-end !important;
  border-bottom: 3px solid #141414;
}

.page-id-1314 .elementor-element-3d6ac71 > .e-con-inner,
.page-id-1719 .elementor-element-3d6ac71 > .e-con-inner {
  align-items: flex-start !important;
  justify-content: flex-end !important;
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 80px 64px 48px 32px !important;
  box-sizing: border-box !important;
}

.page-id-1314 .elementor-element-3d6ac71 .elementor-heading-title,
.page-id-1719 .elementor-element-3d6ac71 .elementor-heading-title {
  text-align: left !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.08 !important;
  font-size: clamp(36px, 4.6vw, 58px) !important;
  color: #fff !important;
  margin: 0 0 18px !important;
}

.page-id-1314 .elementor-element-3d6ac71 .elementor-widget-text-editor,
.page-id-1719 .elementor-element-3d6ac71 .elementor-widget-text-editor,
.page-id-1314 .elementor-element-3d6ac71 .elementor-widget-text-editor p,
.page-id-1719 .elementor-element-3d6ac71 .elementor-widget-text-editor p {
  text-align: left !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Team member grid: keep the shortcode layout, make spacing hold */
.ari-team-v2 .atv2-team-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 32px !important;
  column-gap: 32px !important;
  row-gap: 32px !important;
}

.ari-team-v2 .atv2-leadership-grid {
  gap: 32px !important;
}

@media (max-width: 1200px) {
  .ari-team-v2 .atv2-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .ari-research .arr-hero,
  .ari-policy-bytes .arr-hero,
  .ari-team-v2 .atv2-hero,
  .page-hero {
    padding: 44px 32px 40px !important;
    min-height: 360px !important;
  }

  .ari-research .arr-hero-inner,
  .ari-policy-bytes .arr-hero-inner,
  .ari-team-v2 .atv2-hero-inner,
  .page-hero .hero-inner {
    max-width: 100% !important;
  }

  .page-id-1314 .elementor-element-3d6ac71 > .e-con-inner,
  .page-id-1719 .elementor-element-3d6ac71 > .e-con-inner {
    padding: 44px 32px 40px !important;
  }

  .ari-team-v2 .atv2-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .ari-team-v2 .atv2-team-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
