<?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_74a68f89-d1f3-4737-8cb0-8d577b9660c5">
        <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:CombinedProspectusTableNa
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_7ebf4535-da33-4e03-a1fc-ba59b6b7dc37">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_d4c249a7-78d2-4c43-ba1b-02640e8ed34f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_755928f7-e7a4-4ec4-8cd5-457c7d67fcf3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_11df2dc9-7adc-4b45-b657-3908fbc3d856">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_f0d089dd-c5e9-4edb-9e6e-f379f1244076">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_07634696-6bc7-4a61-b5af-ebe530a5dd62">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_207dcbd5-62c8-4002-b8df-edc2850b8231">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_d82a4b16-936c-4ae2-86fe-9d7a2fd320b7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_3fcd9a7d-9201-4a82-a36c-bf8e340b09e4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      id="F_97ddd8e9-16bb-4ac8-8895-ee5df739b5af">&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;4,144,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_74a68f89-d1f3-4737-8cb0-8d577b9660c5"
      decimals="-3"
      id="F_76c2de78-5c0f-4113-9f1e-ea8824613c8b"
      unitRef="U_USD">4144000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
