<?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_6b4d1ca6-9eae-4d68-848a-e59d9ce57098">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_8755c3ae-5833-489d-8ef3-28b8a9fa4c8d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_5dc015fa-99fa-411c-855b-a5b234ab767e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_f34435e9-7792-48b9-b793-3cf31181817c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_d7359f66-472b-4254-ab4c-3c9312658397">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_4ff0efd7-01d1-4c8a-9088-acba617bd28f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_ec1066b9-4c7c-407f-ac3c-64360b19d496">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_20b0cab6-7568-4392-a3ec-36045ef65000">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_e5d54ad0-a94d-4e40-8b0f-e1e6b08d5b4d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_d11d2923-c094-407e-baac-09ecb6ba41f6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      id="F_b88000b7-67a5-4b2d-881f-faed9d6db5ff">&lt;p style="tab-size:26.66px;font-size:12pt;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,098,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_6b4d1ca6-9eae-4d68-848a-e59d9ce57098"
      decimals="-3"
      id="F_6e4645b7-d1be-4b8b-8315-d367a80855f5"
      unitRef="U_USD">1098000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
