<?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_a63b42fc-573d-49a0-83cf-811f27edad4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_e620c610-9b84-433e-bf06-b3b49d120ddb">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_b4ce730e-5a63-4d2d-abae-b47ca4d9921d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_b561bf67-8ec5-4fc1-8e26-c0580d3fbe5b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_3417586a-ea6b-47ec-9430-1d30e192a6d9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_a0552fec-8325-481c-a41a-ad4379cedf69">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_6026906c-de2c-4a6c-bb77-c039b3120a94">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_8ace640c-1bf7-4761-b2e9-8e9a54994050">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_cb81c069-a85e-435f-b422-4e8505988f25">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_a3b9c43f-1698-413e-9ce6-2509bcea583e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a63b42fc-573d-49a0-83cf-811f27edad4f"
      id="F_176924d3-5cb9-4ec0-a4fe-2effc62645c6">&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,000,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_a63b42fc-573d-49a0-83cf-811f27edad4f"
      decimals="-6"
      id="F_6c5bf88e-43e6-4b90-a738-130543e46f97"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
