<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_bff6ab27-cda9-443d-b6c1-77691402e78c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_5741558f-95ca-4c59-a23f-e3d2ca3f5fa5">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_0fc6a300-0e8f-4ec0-89d3-6e8ce5c1b9b1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_63960a3f-a4ee-4a22-a909-d527fe8f92b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_3eeda288-47b0-4947-8048-1a4c4b1ea2c3">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_769eabfa-3e76-4a70-a685-4bbb7203c578">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_473151a5-c87c-48b8-9080-d918072c92b1">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_31de16f5-06fd-4a66-ad04-4450ea2e6d39">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_4794b16d-475a-4d2d-8580-f39e11369011">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      id="F_4fbc2e8c-97c6-425c-beb6-f484904b6807">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;49,677,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_df80ad6e-16a8-4a2f-adf4-ac003990fffa"
      decimals="-3"
      id="F_d2d6b5b1-0ebc-4fb9-b45e-83772a8751ad"
      unitRef="U_USD">49677000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
