<?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_feaeb848-0505-4985-a5cb-aa23f44c7f36">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_e4048c10-0ccb-46bc-a76d-806a35c13fbd">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_e331837c-e6fb-4c68-a7d5-11b901732f21">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_c0110733-2a9e-4a65-9367-beb7266d5375">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_39761932-6ae1-47a9-9330-3d0ca221685c">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_1bc7a2ba-a7be-404e-9a7f-b13b9177e2b5">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_04d21344-b9db-4af9-82a0-3a367588cd84">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_96b7199d-cf8f-4d9c-a55f-f9d6ac90af2d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_cf778281-1eea-491a-95b6-3b9aa770ef04">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_1564778d-a337-4600-9a61-ca09d4bddabb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      id="F_75882e52-89a9-4cc6-b661-0560f5270e73">&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;1,657,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_feaeb848-0505-4985-a5cb-aa23f44c7f36"
      decimals="-3"
      id="F_0bda5f56-0d60-4c17-9770-a92148de0a0e"
      unitRef="U_USD">1657000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
