<?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_770c64cf-0744-4ffc-81ef-a9e131ade245">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_92652571-0bab-4a39-a988-9508b4302cca">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_a5f658da-e8da-4ded-bc84-20e5ab6b28ac">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_d266d0dc-1df5-4ea3-b767-1723dc60cac4">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_306df2d9-e861-4ab3-9587-eb9d7220a4f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_241bb61d-0aec-4257-99f6-f1d5752da021">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_d5037bd4-b90f-4d3e-9330-f925ea318c42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_03a3c2b5-00e3-4178-9b11-f812261c1759">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_de06b3ff-b7c5-454f-ab1c-ca920b557d27">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_8688321b-a1c6-4699-a223-b983bb51a6e9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_770c64cf-0744-4ffc-81ef-a9e131ade245"
      id="F_7d7f05c5-d57a-43bd-ba05-90c7a5c7fd92">&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;4,674,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_770c64cf-0744-4ffc-81ef-a9e131ade245"
      decimals="-3"
      id="F_7c6f7111-c91f-4fbe-a9e1-ea07146f6fff"
      unitRef="U_USD">4674000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
