<?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_008469f8-16f4-4caf-a85f-51c5308ae26a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-29</startDate>
            <endDate>2026-07-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_328eb0cc-414d-4fbc-ab12-3c13aa4b7787">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_a07e66a4-ad2b-4436-8061-06361b3e26f7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_d93bfeb1-209f-44c2-bf95-7700bbb52255">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_99af1f26-8e8e-469e-b59b-af5acf88a9e2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_40347023-4938-4ff3-b112-2208f1d95b8a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_bfcb2d35-9ae8-4e3b-8e97-ec2ac6b73889">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_146cb000-fdf3-44d5-befe-a9e836b3b5d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_b6adaefd-9596-4d8f-9d2c-1c68b030b6fc">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_751b1b15-7fd9-4b6d-98c5-769559e12655">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_008469f8-16f4-4caf-a85f-51c5308ae26a"
      id="F_ed24e808-bb09-403c-b35b-aefc3d225538">&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;250,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_008469f8-16f4-4caf-a85f-51c5308ae26a"
      decimals="-3"
      id="F_638a1150-c95c-4f48-a5fc-8af4b7ee6e57"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
