<?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_4d569072-6a84-436b-9393-e217bb612d96">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_c0b86813-26f4-4964-a6aa-13468ab58cd7">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_6d05c5ee-1ace-4e5c-a5bb-c3b1a1f11e2b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_c10a73b9-66e4-4668-996c-4071146dbb03">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_c4a3392e-ae56-4607-9fc3-0d578447f096">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_86b2ec98-2cb9-4ceb-bb40-4690caa3d837">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_3738f024-a2c3-4dfe-97ed-cf6d11373557">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_03163a01-2e49-4cd0-a909-390aa41f55fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_d5b2a4a5-60fe-4500-89a0-452488b7ba37">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_55eb2faa-5fcc-416f-ac08-94d67ceefa79">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4d569072-6a84-436b-9393-e217bb612d96"
      id="F_cee0c740-97e7-454c-9659-79e220bb374e">&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,153,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_4d569072-6a84-436b-9393-e217bb612d96"
      decimals="0"
      id="F_b42dcbbf-2192-478f-a94a-a890fa62b13d"
      unitRef="U_USD">4153000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
