<?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_3a4b68b9-672a-4a98-9872-dad39d3ef546">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_5a114469-c971-4c89-a58a-836b90361d41">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_941e0563-88f6-4f1b-a8c8-7ae2732d430d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_de2bb595-7d45-4ced-a25a-e27983d4be7c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_d3191b46-51e8-4378-928b-389f6fb205f3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_a21101c2-0b15-4b6f-ba18-01b759053f43">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_ce811865-369d-4bd4-a722-0d50de732587">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_c3232269-e39f-41e9-9148-d4b6ab111827">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_d1f2992d-b411-4ef8-8393-64ea15513e7a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_7b3f8a5f-c7cc-4c12-9b3a-71b478f467e7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      id="F_34e36c7e-14b7-438b-b7bf-3dd6bba03bfd">&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;207,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_3a4b68b9-672a-4a98-9872-dad39d3ef546"
      decimals="-3"
      id="F_7fd8843d-0da2-4ec9-a4a1-553f0385b55e"
      unitRef="U_USD">207000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
