{
 "version": "2.2",
 "instance": {
  "d859981dncsr.htm": {
   "nsprefix": "gsam",
   "nsuri": "http://gsam/20240831",
   "dts": {
    "inline": {
     "local": [
      "d859981dncsr.htm"
     ]
    },
    "schema": {
     "local": [
      "gsam-20240831.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/arcrole/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-roles-2024.xsd",
      "https://xbrl.fasb.org/srt/2024/elts/srt-types-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd",
      "https://xbrl.fasb.org/us-gaap/2024/elts/us-types-2024.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024.xsd",
      "https://xbrl.sec.gov/country/2024/country-2024_def.xsd",
      "https://xbrl.sec.gov/dei/2024/dei-2024.xsd",
      "https://xbrl.sec.gov/oef/2024/oef-2024.xsd",
      "https://xbrl.sec.gov/oef/2024/oef-2024_lab.xsd",
      "https://xbrl.sec.gov/oef/2024/oef-sr-2024.xsd",
      "https://xbrl.sec.gov/stpr/2024/stpr-2024.xsd"
     ]
    }
   },
   "keyStandard": 36,
   "keyCustom": 0,
   "axisStandard": 5,
   "axisCustom": 0,
   "memberStandard": 9,
   "memberCustom": 356,
   "hidden": {
    "total": 6,
    "http://xbrl.sec.gov/dei/2024": 6
   },
   "contextCount": 5265,
   "entityCount": 1,
   "segmentCount": 365,
   "elementCount": 483,
   "unitCount": 6,
   "baseTaxonomies": {
    "http://xbrl.sec.gov/oef/2024": 7624,
    "http://xbrl.sec.gov/dei/2024": 119,
    "http://fasb.org/us-gaap/2024": 113
   },
   "report": {
    "R1": {
     "role": "http://xbrl.sec.gov/oef/role/NcsrCover",
     "longName": "030000 - Disclosure - Form N-CSR Cover",
     "shortName": "Form N-CSR Cover",
     "isDefault": "true",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": null,
     "uniqueAnchor": null
    },
    "R2": {
     "role": "http://xbrl.sec.gov/oef/role/ShareholderReport",
     "longName": "030001 - Disclosure - Shareholder Report",
     "shortName": "Shareholder Report",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "2",
     "firstAnchor": {
      "contextRef": "From2023-09-01to2024-08-31_C000050458Member",
      "name": "oef:FundName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "h1",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "From2023-09-01to2024-08-31_C000050458Member",
      "name": "oef:FundName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "h1",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails",
     "longName": "040010 - Disclosure - Shareholder Report, Line Graph (Details)",
     "shortName": "Shareholder Report, Line Graph (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "3",
     "firstAnchor": {
      "contextRef": "From2023-09-01to2024-08-31_C000050458Member",
      "name": "oef:LineGraphAndTableMeasureName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "th",
       "tr",
       "thead",
       "table",
       "oef:LineGraphTableTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-08-31_C000050458Member",
      "name": "oef:AcctVal",
      "unitRef": "USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "div",
       "td",
       "tr",
       "tbody",
       "table",
       "oef:LineGraphTableTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
     "longName": "040015 - Disclosure - Shareholder Report, Average Annual Return (Details)",
     "shortName": "Shareholder Report, Average Annual Return (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "4",
     "firstAnchor": {
      "contextRef": "From2023-09-01to2024-08-31_C000050458Member",
      "name": "oef:LineGraphAndTableMeasureName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "th",
       "tr",
       "thead",
       "table",
       "oef:LineGraphTableTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "From2023-09-01to2024-08-31_C000058009Member",
      "name": "oef:AvgAnnlRtrPct",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "div",
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "div",
       "oef:AvgAnnlRtrTableTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
     "longName": "040020 - Disclosure - Shareholder Report, Holdings (Details)",
     "shortName": "Shareholder Report, Holdings (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "5",
     "firstAnchor": {
      "contextRef": "AsOf2024-08-31_C000050458Member_UnderlyingFundsSectorMember",
      "name": "oef:PctOfNav",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "div",
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "div",
       "div",
       "oef:HoldingsTableTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "AsOf2024-08-31_C000050458Member_UnderlyingFundsSectorMember",
      "name": "oef:PctOfNav",
      "unitRef": "Pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "div",
       "td",
       "tr",
       "tbody",
       "table",
       "div",
       "div",
       "div",
       "oef:HoldingsTableTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d859981dncsr.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "oef_AccountValueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AccountValueLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_AccountValueTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AccountValueTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value [Table]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_AccountValueTableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AccountValueTableAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value Table [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_AccountantChngDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AccountantChngDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accountant Change Date"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_AccountantChngDisagreementsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AccountantChngDisagreementsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accountant Change Disagreements [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r62"
     ]
    },
    "oef_AccountantChngStatementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AccountantChngStatementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accountant Change Statement [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "oef_AcctVal": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AcctVal",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Value"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "oef_AdditionalIndexAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AdditionalIndexAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Index [Axis]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_AdditionalIndexDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AdditionalIndexDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Index [Domain]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_AddlFundStatisticsSignificanceOrLimitsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AddlFundStatisticsSignificanceOrLimitsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Fund Statistics Significance or Limits [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "oef_AddlFundStatisticsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AddlFundStatisticsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Fund Statistics [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "oef_AddlInfoEmail": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AddlInfoEmail",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information Email"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "oef_AddlInfoPhoneNumber": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AddlInfoPhoneNumber",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information Phone Number"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "oef_AddlInfoTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AddlInfoTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r27"
     ]
    },
    "oef_AddlInfoWebsite": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AddlInfoWebsite",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Information Website"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "oef_AdvisoryFeesPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AdvisoryFeesPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advisory Fees Paid, Amount"
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "dei_AmendmentDescription": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentDescription",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Description",
        "documentation": "Description of changes contained within amended document."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "oef_AnnlOrSemiAnnlStatementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AnnlOrSemiAnnlStatementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Annual or Semi-Annual Statement [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "us-gaap_AssetsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "AssetsNet",
     "crdr": "debit",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AssetsNet",
        "documentation": "Amount of net assets (liabilities)."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "oef_AverageAnnualReturnAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AverageAnnualReturnAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return:"
       }
      }
     },
     "auth_ref": [
      "r65"
     ]
    },
    "oef_AverageAnnualReturnLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AverageAnnualReturnLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_AverageAnnualReturnTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AverageAnnualReturnTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "oef_AvgAnnlRtrPct": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AvgAnnlRtrPct",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return, Percent"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_AvgAnnlRtrTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "AvgAnnlRtrTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average Annual Return [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "gsam_BloombergUSAggregateBondIndex44261AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44261AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44261"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44262AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44262AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44262"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44263AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44263AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44263"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44264AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44264AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44264"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44265AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44265AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44265"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44266AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44266AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44266"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44267AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44267AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44267"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSAggregateBondIndex44268AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSAggregateBondIndex44268AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Aggregate Bond Index",
        "label": "Bloomberg U.S. Aggregate Bond Index_44268"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44261AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44261AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44261"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44262AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44262AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44262"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44263AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44263AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44263"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44264AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44264AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44264"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44265AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44265AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44265"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44266AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44266AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44266"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44267AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44267AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44267"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_BloombergUSIntermediateTreasuryBond44268AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "BloombergUSIntermediateTreasuryBond44268AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bloomberg U.S. Intermediate Treasury Bond",
        "label": "Bloomberg U.S. Intermediate Treasury Bond_44268"
       }
      }
     },
     "auth_ref": []
    },
    "oef_BroadBasedIndexAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "BroadBasedIndexAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Broad Based Index [Axis]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "oef_BroadBasedIndexDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "BroadBasedIndexDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Broad Based Index [Domain]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "gsam_C000025453Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025453Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025453"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025454Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025454Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025454"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025455Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025455Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025455"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025457Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025457Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025457"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025459Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025459Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025459"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025460Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025460Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025460"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025461Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025461Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025461"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025463Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025463Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025463"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025465Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025465Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025465"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025466Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025466Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025466"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025467Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025467Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025467"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025469Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025469Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025469"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025471Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025471Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025471"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025472Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025472Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025472"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025473Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025473Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025473"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025475Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025475Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025475"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025483Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025483Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025483"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025484Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025484Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025484"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025485Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025485Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025485"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025487Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025487Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025487"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025489Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025489Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025489"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025490Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025490Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025490"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025491Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025491Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025491"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025493Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025493Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025493"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025495Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025495Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025495"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025496Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025496Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025496"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025497Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025497Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025497"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025499Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025499Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025499"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025501Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025501Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025501"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025502Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025502Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025502"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025503Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025503Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025503"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025505Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025505Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025505"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025595Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025595Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025595"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025596Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025596Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025596"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025597Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025597Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025597"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000025599Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000025599Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000025599"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000050455Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000050455Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000050455"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000050456Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000050456Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000050456"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000050457Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000050457Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000050457"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000050458Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000050458Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000050458"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055743Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055743Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055743"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055744Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055744Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055744"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055745Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055745Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055745"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055746Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055746Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055746"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055747Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055747Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055747"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055748Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055748Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055748"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055749Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055749Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055749"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055750Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055750Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055750"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055751Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055751Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055751"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055752Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055752Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055752"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055753Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055753Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055753"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055754Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055754Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055754"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055755Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055755Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055755"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055756Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055756Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055756"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055757Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055757Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055757"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000055758Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000055758Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000055758"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000058009Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000058009Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000058009"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000058010Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000058010Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000058010"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000058011Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000058011Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000058011"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000058012Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000058012Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000058012"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000058013Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000058013Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000058013"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000081145Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000081145Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000081145"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000081146Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000081146Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000081146"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000081147Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000081147Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000081147"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000081148Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000081148Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000081148"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000081149Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000081149Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000081149"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000092626Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000092626Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000092626"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000136623Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000136623Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000136623"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000136624Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000136624Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000136624"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000136625Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000136625Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000136625"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000136626Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000136626Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000136626"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000136627Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000136627Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000136627"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000158768Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000158768Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000158768"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000158769Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000158769Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000158769"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000158770Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000158770Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000158770"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000158771Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000158771Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000158771"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000158772Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000158772Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000158772"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000158773Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000158773Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000158773"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159652Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159652Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159652"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159653Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159653Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159653"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159654Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159654Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159654"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159655Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159655Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159655"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159657Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159657Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159657"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159658Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159658Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159658"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000159659Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000159659Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000159659"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000161552Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000161552Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000161552"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000161553Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000161553Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000161553"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000161554Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000161554Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000161554"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000161556Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000161556Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000161556"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000196982Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000196982Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000196982"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000196983Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000196983Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000196983"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000196989Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000196989Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000196989"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000198881Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000198881Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000198881"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000198882Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000198882Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000198882"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000198883Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000198883Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000198883"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000198884Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000198884Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000198884"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000198886Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000198886Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000198886"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000200233Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000200233Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000200233"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000200234Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000200234Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000200234"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000200235Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000200235Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000200235"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201702Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201702Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201702"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201703Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201703Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201703"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201801Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201801Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201801"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201802Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201802Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201802"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201803Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201803Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201803"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201804Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201804Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201804"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201806Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201806Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201806"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201807Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201807Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201807"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201808Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201808Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201808"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201809Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201809Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201809"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201810Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201810Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201810"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000201811Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000201811Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000201811"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_C000205965Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "C000205965Member",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "C000205965"
       }
      }
     },
     "auth_ref": []
    },
    "oef_ClassAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ClassAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class [Axis]"
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "oef_ClassName": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ClassName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Name"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "gsam_CommunicationServicesSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "CommunicationServicesSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Communication Services"
       }
      }
     },
     "auth_ref": []
    },
    "oef_ConsumerDiscretionarySectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ConsumerDiscretionarySectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Discretionary Sector [Member]",
        "terseLabel": "Consumer Discretionary"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_ConsumerStaplesSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ConsumerStaplesSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consumer Staples Sector [Member]",
        "terseLabel": "Consumer Staples"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "oef_CreditQualityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "CreditQualityAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_CreditQualityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "CreditQualityDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_CreditQualityExplanationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "CreditQualityExplanationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Quality Explanation [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_CreditRatingsSelectionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "CreditRatingsSelectionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Credit Ratings Selection [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_DistOfCapitalTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "DistOfCapitalTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution of Capital [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period. The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "DocumentType",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "gsam_EDGECompositeIndex44261AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "EDGECompositeIndex44261AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EDGE Composite Index",
        "label": "EDGE Composite Index_44261"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_EDGECompositeIndex44262AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "EDGECompositeIndex44262AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EDGE Composite Index",
        "label": "EDGE Composite Index_44262"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_EDGECompositeIndex44263AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "EDGECompositeIndex44263AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EDGE Composite Index",
        "label": "EDGE Composite Index_44263"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_EDGECompositeIndex44264AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "EDGECompositeIndex44264AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EDGE Composite Index",
        "label": "EDGE Composite Index_44264"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EnergySectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "EnergySectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy",
        "documentation": "Sector of economy consisting of companies engaged in business activity related to energy."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r19",
      "r20",
      "r68",
      "r69",
      "r70",
      "r71"
     ]
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Series",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInvCompanyType": {
     "xbrltype": "invCompanyType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityInvCompanyType",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Investment Company Type",
        "documentation": "One of: N-1A (Mutual Fund), N-1 (Open-End Separate Account with No Variable Annuities), N-2 (Closed-End Investment Company), N-3 (Separate Account Registered as Open-End Management Investment Company), N-4 (Variable Annuity UIT Separate Account), N-5 (Small Business Investment Company), N-6 (Variable Life UIT Separate Account), S-1 or S-3 (Face Amount Certificate Company), S-6 (UIT, Non-Insurance Product)."
       }
      }
     },
     "auth_ref": [
      "r66"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "oef_EtfDiscountNumDays": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "EtfDiscountNumDays",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Discount, Number of Days"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "oef_EtfPastPerfTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "EtfPastPerfTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Past Performance [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r49"
     ]
    },
    "oef_EtfPremiumDiscountTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "EtfPremiumDiscountTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Premium Discount [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "oef_EtfPremiumNumDays": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "EtfPremiumNumDays",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Premium, Number of Days"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "oef_EtfPurchaseExplanationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "EtfPurchaseExplanationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ETF Purchase Explanation [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "gsam_ExchangeMinusTradedFundsSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "ExchangeMinusTradedFundsSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange-Traded Funds"
       }
      }
     },
     "auth_ref": []
    },
    "oef_ExpenseRatioPct": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExpenseRatioPct",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Ratio, Percent"
       }
      }
     },
     "auth_ref": [
      "r32"
     ]
    },
    "oef_ExpensesExclExtraordinaryExpensesPct": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExpensesExclExtraordinaryExpensesPct",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Excluding Extraordinary Expenses, Percent"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "oef_ExpensesPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExpensesPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Paid, Amount"
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "oef_ExpensesRepresentBothMasterAndFeeder": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExpensesRepresentBothMasterAndFeeder",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Represent Both Master and Feeder [Text]"
       }
      }
     },
     "auth_ref": [
      "r33",
      "r63"
     ]
    },
    "oef_ExpensesShortPeriodFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExpensesShortPeriodFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses Short Period Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "oef_ExpensesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExpensesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "oef_ExposureBasisExplanationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExposureBasisExplanationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exposure Basis Explanation [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_ExtraordinaryExpensesFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ExtraordinaryExpensesFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extraordinary Expenses Footnote [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "oef_FactorsAffectingPerfTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "FactorsAffectingPerfTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Factors Affecting Performance [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "gsam_FinancialsSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "FinancialsSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financials"
       }
      }
     },
     "auth_ref": []
    },
    "oef_FundName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "FundName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fund Name"
       }
      }
     },
     "auth_ref": [
      "r25"
     ]
    },
    "oef_GeographicRegionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "GeographicRegionAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Region [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_GeographicRegionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "GeographicRegionDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographic Region [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "us-gaap_HealthcareSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "HealthcareSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Health Care",
        "documentation": "Sector of the economy consisting of companies engaged in healthcare-related business activities."
       }
      }
     },
     "auth_ref": [
      "r18",
      "r19",
      "r20",
      "r21",
      "r68",
      "r69",
      "r70",
      "r71"
     ]
    },
    "oef_HoldingsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "HoldingsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_HoldingsCount": {
     "xbrltype": "integerItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "HoldingsCount",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings Count"
       }
      }
     },
     "auth_ref": [
      "r50"
     ]
    },
    "oef_HoldingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "HoldingsLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_HoldingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "HoldingsTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Table]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_HoldingsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "HoldingsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Holdings [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_InabilityToMeetDistLevelTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "InabilityToMeetDistLevelTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inability to Meet Distribution Level [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "gsam_IndustrialsSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "IndustrialsSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industrials"
       }
      }
     },
     "auth_ref": []
    },
    "oef_IndustrySectorAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "IndustrySectorAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industry Sector [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_IndustrySectorDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "IndustrySectorDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industry Sector [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_InformationTechnologySectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "InformationTechnologySectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Information Technology Sector [Member]",
        "terseLabel": "Information Technology"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "us-gaap_InvestmentCompanyPortfolioTurnover": {
     "xbrltype": "percentItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentCompanyPortfolioTurnover",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of lesser of purchase or sale of portfolio securities to average value of portfolio securities owned."
       }
      }
     },
     "auth_ref": [
      "r67"
     ]
    },
    "gsam_InvestmentCompanySectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "InvestmentCompanySectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Company"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_InvestmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r2",
      "r3",
      "r4",
      "r5",
      "r6",
      "r7",
      "r8",
      "r9",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r16",
      "r21"
     ]
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "InvestmentTypeCategorizationMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r2",
      "r3",
      "r4",
      "r5",
      "r6",
      "r7",
      "r8",
      "r9",
      "r10",
      "r11",
      "r12",
      "r13",
      "r14",
      "r15",
      "r16",
      "r21"
     ]
    },
    "oef_LargestHoldingAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "LargestHoldingAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Largest Holding [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_LargestHoldingsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "LargestHoldingsDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Largest Holdings [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_LargestHoldingsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "LargestHoldingsTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Largest Holdings [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Series [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "oef_LineGraphAndTableMeasureName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "LineGraphAndTableMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Graph and Table Measure Name"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "oef_LineGraphTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "LineGraphTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Line Graph [Table Text Block]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "gsam_MSCIACWIIMI44261AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44261AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44261"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44262AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44262AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44262"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44263AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44263AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44263"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44264AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44264AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44264"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44265AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44265AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44265"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44266AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44266AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44266"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44267AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44267AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44267"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMI44268AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMI44268AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI",
        "label": "MSCI ACWI IMI_44268"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44261AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44261AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44261"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44262AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44262AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44262"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44263AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44263AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44263"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44264AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44264AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44264"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44265AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44265AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44265"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44266AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44266AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44266"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44267AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44267AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44267"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_MSCIACWIIMIDevelopedMarketsFX50Hedged44268AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "MSCIACWIIMIDevelopedMarketsFX50Hedged44268AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)",
        "label": "MSCI ACWI IMI (Developed Markets FX 50% Hedged)_44268"
       }
      }
     },
     "auth_ref": []
    },
    "oef_MaterialChngDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialChngDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Change Date"
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "oef_MaterialChngDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialChngDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Change Description [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r42"
     ]
    },
    "oef_MaterialFundChngAdviserTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngAdviserTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Adviser [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "oef_MaterialFundChngExpensesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngExpensesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Expenses [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r56"
     ]
    },
    "oef_MaterialFundChngNameTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngNameTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Name [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "oef_MaterialFundChngNoticeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngNoticeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Notice [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r28"
     ]
    },
    "oef_MaterialFundChngObjectivesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngObjectivesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Objectives [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r55"
     ]
    },
    "oef_MaterialFundChngRisksChngTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngRisksChngTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Risks Change [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r58"
     ]
    },
    "oef_MaterialFundChngStrategiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngStrategiesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change Strategies [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "oef_MaterialFundChngTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialFundChngTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Fund Change [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r53"
     ]
    },
    "oef_MaterialsSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaterialsSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Materials Sector [Member]",
        "terseLabel": "Materials"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaturityAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_MaturityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "MaturityDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "gsam_NASDAQCompositeTotalReturnIndex44526AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44526AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44526"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_NASDAQCompositeTotalReturnIndex44527AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44527AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44527"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_NASDAQCompositeTotalReturnIndex44528AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44528AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44528"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_NASDAQCompositeTotalReturnIndex44529AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44529AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44529"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_NASDAQCompositeTotalReturnIndex44530AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44530AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44530"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_NASDAQCompositeTotalReturnIndex44531AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44531AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44531"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_NASDAQCompositeTotalReturnIndex44532AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "NASDAQCompositeTotalReturnIndex44532AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "NASDAQ Composite Total Return Index",
        "label": "NASDAQ Composite Total Return Index_44532"
       }
      }
     },
     "auth_ref": []
    },
    "oef_NoDeductionOfTaxesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "NoDeductionOfTaxesTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Deduction of Taxes [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "dei_NoTradingSymbolFlag": {
     "xbrltype": "trueItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "NoTradingSymbolFlag",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading Symbol [Flag]",
        "documentation": "Boolean flag that is true only for a security having no trading symbol."
       }
      }
     },
     "auth_ref": []
    },
    "oef_OtherCategory1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "OtherCategory1Axis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 1 [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_OtherCategory1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "OtherCategory1Domain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 1 [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_OtherCategory2Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "OtherCategory2Axis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 2 [Axis]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_OtherCategory2Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "OtherCategory2Domain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Category 2 [Domain]"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "gsam_OtherSectorsSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "OtherSectorsSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Sectors"
       }
      }
     },
     "auth_ref": []
    },
    "oef_PctOfNav": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PctOfNav",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Net Asset Value"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_PctOfNetLongExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PctOfNetLongExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Net Long Exposure"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_PctOfNetShortExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PctOfNetShortExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Net Short Exposure"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_PctOfTotalInv": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PctOfTotalInv",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Total Investments"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_PctOfTotalLongExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PctOfTotalLongExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Total Long Exposure"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_PctOfTotalShortExposure": {
     "xbrltype": "percentItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PctOfTotalShortExposure",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percent of Total Short Exposure"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_PerfInceptionDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PerfInceptionDate",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Inception Date"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "oef_PerfTableMarketIndexChngdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PerfTableMarketIndexChngdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Table Market Index Changed [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "oef_PerformancePastDoesNotIndicateFuture": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PerformancePastDoesNotIndicateFuture",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Past Does Not Indicate Future [Text]"
       }
      }
     },
     "auth_ref": [
      "r40",
      "r64"
     ]
    },
    "oef_PreviousInvestmentAdviserTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PreviousInvestmentAdviserTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Previous Investment Adviser [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r41"
     ]
    },
    "gsam_PriorEDGECompositeIndex44261AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorEDGECompositeIndex44261AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior EDGE Composite Index",
        "label": "Prior EDGE Composite Index_44261"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_PriorEDGECompositeIndex44262AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorEDGECompositeIndex44262AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior EDGE Composite Index",
        "label": "Prior EDGE Composite Index_44262"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_PriorEDGECompositeIndex44263AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorEDGECompositeIndex44263AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior EDGE Composite Index",
        "label": "Prior EDGE Composite Index_44263"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_PriorEDGECompositeIndex44264AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorEDGECompositeIndex44264AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior EDGE Composite Index",
        "label": "Prior EDGE Composite Index_44264"
       }
      }
     },
     "auth_ref": []
    },
    "oef_PriorMarketIndexComparisonTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "PriorMarketIndexComparisonTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Market Index Comparison [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "gsam_PriorTAGCompositeIndex44265AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorTAGCompositeIndex44265AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior TAG Composite Index",
        "label": "Prior TAG Composite Index_44265"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_PriorTAGCompositeIndex44266AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorTAGCompositeIndex44266AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior TAG Composite Index",
        "label": "Prior TAG Composite Index_44266"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_PriorTAGCompositeIndex44267AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorTAGCompositeIndex44267AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior TAG Composite Index",
        "label": "Prior TAG Composite Index_44267"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_PriorTAGCompositeIndex44268AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "PriorTAGCompositeIndex44268AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prior TAG Composite Index",
        "label": "Prior TAG Composite Index_44268"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_RealEstateSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2024",
     "localname": "RealEstateSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Real Estate",
        "documentation": "Sector of the economy consisting of companies engaged in real estate business activities."
       }
      }
     },
     "auth_ref": [
      "r17",
      "r18",
      "r68",
      "r69",
      "r70",
      "r71"
     ]
    },
    "gsam_Russell1000GrowthIndex43194AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43194AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43194"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43195AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43195AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43195"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43196AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43196AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43196"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43197AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43197AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43197"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43198AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43198AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43198"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43199AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43199AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43199"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43200AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43200AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43200"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000GrowthIndex43201AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000GrowthIndex43201AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Growth Index",
        "label": "Russell 1000\u00ae Growth Index_43201"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43194BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43194BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43194"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43195BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43195BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43195"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43196BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43196BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43196"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43197BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43197BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43197"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43198BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43198BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43198"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43199BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43199BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43199"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43200BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43200BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43200"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index43201BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index43201BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_43201"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44488AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44488AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44488"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44489AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44489AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44489"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44490AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44490AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44490"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44491AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44491AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44491"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44492AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44492AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44492"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44493AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44493AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44493"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44494AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44494AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44494"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44495AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44495AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44495"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44526BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44526BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44526"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44527BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44527BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44527"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44528BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44528BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44528"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44529BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44529BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44529"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44530BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44530BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44530"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44531BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44531BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44531"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44532BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44532BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44532"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44533BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44533BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44533"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44534BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44534BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44534"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44535BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44535BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44535"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44536BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44536BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44536"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44537BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44537BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44537"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44538BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44538BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44538"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44539BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44539BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44539"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44540BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44540BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44540"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44541BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44541BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44541"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44542BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44542BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44542"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44543BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44543BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44543"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44544BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44544BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44544"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44545BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44545BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44545"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44546BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44546BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44546"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44547BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44547BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44547"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44548BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44548BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44548"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44549BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44549BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44549"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44550BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44550BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44550"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44551BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44551BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44551"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44552BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44552BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44552"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44553BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44553BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44553"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44554BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44554BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44554"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000Index44555BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000Index44555BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Index",
        "label": "Russell 1000\u00ae Index_44555"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44533AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44533AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44533"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44534AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44534AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44534"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44535AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44535AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44535"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44536AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44536AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44536"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44537AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44537AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44537"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44538AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44538AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44538"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44539AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44539AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44539"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44540AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44540AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44540"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44541AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44541AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44541"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44542AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44542AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44542"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44543AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44543AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44543"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44544AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44544AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44544"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44545AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44545AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44545"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44546AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44546AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44546"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44547AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44547AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44547"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44548AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44548AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44548"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44549AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44549AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44549"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44550AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44550AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44550"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44551AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44551AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44551"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44552AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44552AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44552"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44553AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44553AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44553"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44554AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44554AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44554"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell1000ValueIndex44555AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell1000ValueIndex44555AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 1000\u00ae Value Index",
        "label": "Russell 1000\u00ae Value Index_44555"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000GrowthIndex44419AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000GrowthIndex44419AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Growth Index",
        "label": "Russell 2000\u00ae Growth Index_44419"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000GrowthIndex44420AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000GrowthIndex44420AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Growth Index",
        "label": "Russell 2000\u00ae Growth Index_44420"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000GrowthIndex44421AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000GrowthIndex44421AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Growth Index",
        "label": "Russell 2000\u00ae Growth Index_44421"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000GrowthIndex44422AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000GrowthIndex44422AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Growth Index",
        "label": "Russell 2000\u00ae Growth Index_44422"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000GrowthIndex44424AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000GrowthIndex44424AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Growth Index",
        "label": "Russell 2000\u00ae Growth Index_44424"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000GrowthIndex44425AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000GrowthIndex44425AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Growth Index",
        "label": "Russell 2000\u00ae Growth Index_44425"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44564AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44564AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44564"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44565AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44565AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44565"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44566AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44566AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44566"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44567AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44567AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44567"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44568AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44568AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44568"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44569AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44569AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44569"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44570AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44570AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44570"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2000ValueIndex44571AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2000ValueIndex44571AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2000\u00ae Value Index",
        "label": "Russell 2000\u00ae Value Index_44571"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44518AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44518AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44518"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44519AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44519AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44519"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44520AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44520AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44520"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44521AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44521AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44521"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44522AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44522AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44522"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44523AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44523AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44523"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44524AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44524AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44524"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500GrowthIndex44525AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500GrowthIndex44525AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Growth Index",
        "label": "Russell 2500\u00ae Growth Index_44525"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44572AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44572AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44572"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44573AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44573AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44573"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44574AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44574AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44574"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44575AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44575AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44575"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44576AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44576AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44576"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44577AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44577AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44577"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell2500ValueIndex44578AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell2500ValueIndex44578AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 2500\u00ae Value Index",
        "label": "Russell 2500\u00ae Value Index_44578"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44419BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44419BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44419"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44420BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44420BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44420"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44421BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44421BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44421"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44422BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44422BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44422"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44424BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44424BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44424"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44425BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44425BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44425"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44510BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44510BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44510"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44511BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44511BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44511"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44512BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44512BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44512"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44513BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44513BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44513"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44514BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44514BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44514"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44515BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44515BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44515"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44516BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44516BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44516"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44517BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44517BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44517"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44518BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44518BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44518"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44519BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44519BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44519"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44520BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44520BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44520"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44521BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44521BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44521"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44522BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44522BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44522"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44523BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44523BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44523"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44524BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44524BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44524"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44525BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44525BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44525"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44556BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44556BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44556"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44557BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44557BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44557"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44558BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44558BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44558"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44559BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44559BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44559"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44560BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44560BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44560"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44561BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44561BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44561"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44562BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44562BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44562"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44563BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44563BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44563"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44564BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44564BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44564"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44565BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44565BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44565"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44566BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44566BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44566"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44567BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44567BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44567"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44568BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44568BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44568"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44569BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44569BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44569"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44570BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44570BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44570"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44571BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44571BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44571"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44572BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44572BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44572"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44573BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44573BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44573"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44574BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44574BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44574"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44575BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44575BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44575"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44576BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44576BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44576"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44577BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44577BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44577"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_Russell3000Index44578BroadBasedIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "Russell3000Index44578BroadBasedIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell 3000\u00ae Index",
        "label": "Russell 3000\u00ae Index_44578"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44510AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44510AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44510"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44511AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44511AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44511"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44512AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44512AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44512"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44513AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44513AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44513"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44514AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44514AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44514"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44515AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44515AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44515"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44516AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44516AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44516"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapGrowthIndex44517AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapGrowthIndex44517AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Growth Index",
        "label": "Russell Midcap\u00ae Growth Index_44517"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44556AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44556AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44556"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44557AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44557AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44557"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44558AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44558AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44558"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44559AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44559AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44559"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44560AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44560AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44560"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44561AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44561AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44561"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44562AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44562AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44562"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_RussellMidcapValueIndex44563AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "RussellMidcapValueIndex44563AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Russell Midcap\u00ae Value Index",
        "label": "Russell Midcap\u00ae Value Index_44563"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44481AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44481AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44481"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44482AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44482AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44482"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44483AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44483AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44483"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44484AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44484AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44484"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44485AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44485AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44485"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44486AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44486AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44486"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44487AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44487AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44487"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44503AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44503AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44503"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44504AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44504AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44504"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44505AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44505AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44505"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44506AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44506AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44506"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44507AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44507AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44507"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44508AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44508AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44508"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_SP500Index44509AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "SP500Index44509AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "S&amp;P 500\u00ae Index",
        "label": "S&amp;P 500\u00ae Index_44509"
       }
      }
     },
     "auth_ref": []
    },
    "oef_SalesLoadAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "SalesLoadAxis",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales Load [Axis]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "terseLabel": "Exchange",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r23"
     ]
    },
    "oef_ShareClassDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ShareClassDomain",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport",
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Classes"
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "oef_ShareholderReportAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ShareholderReportAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_ShareholderReportAnnualOrSemiAnnual": {
     "xbrltype": "shareholderReportTypeItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ShareholderReportAnnualOrSemiAnnual",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report Annual or Semi-Annual"
       }
      }
     },
     "auth_ref": [
      "r26"
     ]
    },
    "oef_ShareholderReportLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ShareholderReportLineItems",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_ShareholderReportTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "ShareholderReportTable",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/NcsrCover",
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shareholder Report [Table]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_SummaryOfChngLegendTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "SummaryOfChngLegendTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Change Legend [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "gsam_TAGCompositeIndex44265AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "TAGCompositeIndex44265AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TAG Composite Index",
        "label": "TAG Composite Index_44265"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_TAGCompositeIndex44266AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "TAGCompositeIndex44266AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TAG Composite Index",
        "label": "TAG Composite Index_44266"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_TAGCompositeIndex44267AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "TAGCompositeIndex44267AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TAG Composite Index",
        "label": "TAG Composite Index_44267"
       }
      }
     },
     "auth_ref": []
    },
    "gsam_TAGCompositeIndex44268AdditionalIndexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "TAGCompositeIndex44268AdditionalIndexMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails",
      "http://xbrl.sec.gov/oef/role/ShareholderReportLineGraphDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TAG Composite Index",
        "label": "TAG Composite Index_44268"
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2024",
     "localname": "TradingSymbol",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "terseLabel": "Ticker",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "gsam_UnderlyingFundsSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://gsam/20240831",
     "localname": "UnderlyingFundsSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Funds"
       }
      }
     },
     "auth_ref": []
    },
    "oef_UpdPerfInfoLocationTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "UpdPerfInfoLocationTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Performance Information Location [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r43"
     ]
    },
    "oef_UpdProspectusEmailAddress": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "UpdProspectusEmailAddress",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Prospectus Email Address"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "oef_UpdProspectusPhoneNumber": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "UpdProspectusPhoneNumber",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Prospectus Phone Number"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "oef_UpdProspectusWebAddress": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "UpdProspectusWebAddress",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReport"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Prospectus Web Address"
       }
      }
     },
     "auth_ref": [
      "r60"
     ]
    },
    "oef_UtilitiesSectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "UtilitiesSectorMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportHoldingsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Utilities Sector [Member]",
        "terseLabel": "Utilities"
       }
      }
     },
     "auth_ref": [
      "r52"
     ]
    },
    "oef_WithSalesLdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "WithSalesLoadMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "With Sales Load [Member]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    },
    "oef_WithoutSalesLoadMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/oef/2024",
     "localname": "WithoutSalesLoadMember",
     "presentation": [
      "http://xbrl.sec.gov/oef/role/ShareholderReportAverageAnnualReturnDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Without Sales Load [Member]"
       }
      }
     },
     "auth_ref": [
      "r44"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://fasb.org/us-gaap/role/ref/legacyRef",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "SubTopic": "30",
   "Topic": "205",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479910/205-30-50-1"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(b)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "1",
   "Subparagraph": "(c)(2)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-1"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(a)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "6",
   "Subparagraph": "(c)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478795/946-210-50-6"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 1))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column C)(Footnote 5))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column C)(Footnote 4))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "5D",
   "Subparagraph": "(SX 210.12-13D(Column A)(Footnote 2)(i))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-5D"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column F)(Footnote 7))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-7"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-7"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-7"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "7",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-7"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "326",
   "SubTopic": "20",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "12",
   "Subparagraph": "(c)(1)",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147479294/326-20-55-12"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "100",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-100"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "101",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-101"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "820",
   "SubTopic": "10",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "103",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147482078/820-10-55-103"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Topic": "946",
   "SubTopic": "210",
   "Name": "Accounting Standards Codification",
   "Section": "55",
   "Paragraph": "1",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477439/946-210-55-1"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "1",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "3"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "4"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "5"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "b",
   "Paragraph": "instruction",
   "Subparagraph": "2"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "ii"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "iii"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "instruction",
   "Sentence": "1",
   "Clause": "b"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "instruction",
   "Subparagraph": "1",
   "Clause": "c"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "c",
   "Paragraph": "instruction",
   "Subparagraph": "1",
   "Clause": "d"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "1"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Clause": "B"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "iiii",
   "Clause": "A"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "12"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "14"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "15"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "7"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "2",
   "Subparagraph": "instruction",
   "Clause": "8"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "3"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "4"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "4",
   "Subparagraph": "instruction",
   "Clause": "3"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "d",
   "Paragraph": "4",
   "Subparagraph": "instruction",
   "Clause": "4"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "e"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "e",
   "Paragraph": "instruction",
   "Subparagraph": "6"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "f"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "1"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "2"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "3"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "4"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "5"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "6"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "g",
   "Paragraph": "instruction",
   "Subparagraph": "2"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "h",
   "Paragraph": "1"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "27A",
   "Subsection": "h",
   "Paragraph": "2"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "3",
   "Subsection": "instruction",
   "Paragraph": "1",
   "Subparagraph": "d",
   "Sentence": "i"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "4",
   "Subsection": "b",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-1A",
   "Section": "4",
   "Subsection": "b",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "313"
  },
  "r67": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "205",
   "Name": "Accounting Standards Codification",
   "Section": "50",
   "Paragraph": "27",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147478494/946-205-50-27"
  },
  "r68": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "1",
   "Subparagraph": "(SX 210.12-12(Column A)(Footnote 2)(ii))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-1"
  },
  "r69": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "2",
   "Subparagraph": "(SX 210.12-12A(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-2"
  },
  "r70": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "3",
   "Subparagraph": "(SX 210.12-12B(Column A)(Footnote 1)(b))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-3"
  },
  "r71": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Topic": "946",
   "SubTopic": "320",
   "Name": "Accounting Standards Codification",
   "Section": "S99",
   "Paragraph": "6",
   "Subparagraph": "(SX 210.12-14(Column A)(Footnote 2))",
   "Publisher": "FASB",
   "URI": "https://asc.fasb.org/1943274/2147477271/946-320-S99-6"
  }
 }
}
