<?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_a1f64b6a-0bce-4666-9e09-e7b3783fdf88">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-19</startDate>
            <endDate>2026-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_a09dc9bc-3677-4cdf-9bd6-e8a0a57836ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_17ae358b-3b4f-4c19-ac84-0e6ebade4ec6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_34a54433-311f-4308-be21-8acee4c50d82">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_af8b0488-02a0-4e3e-97bd-2c3f5e04db6f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_7e463326-980f-485c-bcdf-409f94037778">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_7599a0a7-bde5-42db-9eb8-95789f154681">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_003fb3c4-0994-4497-a530-5392bbfd482d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_d0af992b-18da-46e7-b64a-68c4b69ca52a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_a2af8877-7ba8-4b6b-ac69-7e8e40047e46">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      id="F_82ea0136-75b2-4d41-aba5-1769d72db7db">&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;6,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_a1f64b6a-0bce-4666-9e09-e7b3783fdf88"
      decimals="-6"
      id="F_68de8949-3160-4995-8960-2af0790e8644"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
