<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_20bbff01-02a8-4f09-a296-2607e6cfdca7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_7d882c8e-025a-4ed7-bb72-2a839ec28148">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_9799df19-7e0c-4d12-a99e-e2700c4c522e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_0988b3f3-1ed8-4310-97e1-50c963757f39">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_504797bf-ab16-4a3d-a841-285b818e4633">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_8b5765f6-ba95-4dc2-bf50-2a397fbb98ea">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_1354b641-f416-41fd-ad68-92fd4ec7b306">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_39f7b107-3266-4e9d-bcb5-ca2950772c56">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_1edd3d91-1fd6-4274-94bf-ec3335df2dfd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_9c16324a-f60c-4f05-87b8-110161f96766">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      id="F_f0af1cd9-afb4-4c49-af48-3e7acbb14c20">&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;7,623,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_20bbff01-02a8-4f09-a296-2607e6cfdca7"
      decimals="0"
      id="F_af688270-0265-4e62-a22a-a0d57129d828"
      unitRef="U_USD">7623000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
