<?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_6b44f86d-6497-4294-b116-d21509c7d67a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_b38cbe3d-9437-4dca-b040-9046d89880e8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_7df0a69c-85b6-4cf0-badd-52c7e6a894dd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_6384f8a4-d793-4377-a862-5779178047df">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_3d1e43a9-a7b2-466f-b6e3-5bf354f2569b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_0a7e136e-6049-441d-a411-5a4c1a590260">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_337534cd-1430-425d-a849-da51e11ed792">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_e6846b13-b830-4a38-81a4-85da6a4889b7">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_fbb43774-261b-4b5f-9a27-4422714cb95f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_f9185956-f0c8-47a6-a695-030543640ea2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6b44f86d-6497-4294-b116-d21509c7d67a"
      id="F_44e0ccc1-5fcd-4297-a3f7-3b5a9ba4fd47">&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;1,934,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_6b44f86d-6497-4294-b116-d21509c7d67a"
      decimals="-3"
      id="F_b97cc3a0-22cc-45e8-90a6-77d795a07cea"
      unitRef="U_USD">1934000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
