<?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_c04ec579-ad66-457b-a421-1db38a826ac6">
        <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:EntityRegistrantName
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_43d013e4-e584-455e-a563-898b6dff1014">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_2e0baa3a-c9f5-4780-bb87-4818d4c71dcc">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_4867fc68-e739-49c3-9301-09f7fb60e4b9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_6f8ac7e9-8a29-4373-8db1-48580bbaa4dd">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_ef2851e8-c23f-4a25-87b8-fdb17e8782f8">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_9dd2baf1-db60-4b68-8c1f-d4c5b0d6f675">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_53d41352-dbe0-4bef-a0f3-81bac5a3766a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_fd7022ed-5d6e-456d-802f-2dd2f8e575de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_ebaa1af6-376a-42ed-a223-17047a7beb5e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c04ec579-ad66-457b-a421-1db38a826ac6"
      id="F_dd29d144-fc75-4a51-b0d2-58a8d73098b9">&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;5,291,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_c04ec579-ad66-457b-a421-1db38a826ac6"
      decimals="-3"
      id="F_ded77cbe-6aeb-46fb-a203-e3d7aa255fdc"
      unitRef="U_USD">5291000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
