<?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_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8">
        <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>
    <ffd:FormTp
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_c0c54596-f7e5-4a81-a206-5b4c61adbde6">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_da423fad-5452-4bd6-9e6e-3ed397c34d82">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_cc528e27-f460-4b09-b329-21f5fcf91e8c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_48762c4a-e6d0-4839-a474-75ed58482671">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_9c5c2574-6f61-46df-a264-383d0979c8b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_b78ad7ac-9b81-4357-9aae-9b49af59f01c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_50f3b2e1-4cb4-46fe-a822-04f057e305a8">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_187c256a-4cec-4c5d-aab2-b0a24b53ca13">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_1d62d3a0-aed3-4433-a404-739650e7d347">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      id="F_4ad796c7-5757-437b-a1fc-9df4aa418c3a">&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;2,334,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_da7ba9a4-86c1-4db4-b644-ec3e3dd354f8"
      decimals="-3"
      id="F_76a11ea7-c01e-4264-a4f5-8c57a62b9e39"
      unitRef="U_USD">2334000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
