<?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_c989a458-bfe6-44c0-b68a-3fb8760b54d4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_d86e77af-29f7-4078-b98c-b98500f647d5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_6bde36bc-51b7-4e88-a8c8-3ec1b7aa9dc2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_a375b11a-5b9c-43f8-9e6e-30541f1ff3fd">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_66e99807-b78e-4088-b46c-48e706ab8518">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_19c2d2ab-b197-4147-b838-1b6da5feb4e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_7cc94128-a305-4211-a73f-56198e4bb0aa">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_5a3bf552-6bce-4ad7-b331-6cbd40e03c82">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_9b15810a-0167-4541-b1ea-dbdd105a02f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_c2a50e12-2178-468a-98ad-173cdc000a3e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      id="F_a3055d64-cce9-48ca-a7c8-396951a69a76">&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;345,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_c989a458-bfe6-44c0-b68a-3fb8760b54d4"
      decimals="-3"
      id="F_7e6577fd-d1c6-4d78-abe1-034f532adb9b"
      unitRef="U_USD">345000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
