<?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_c3be073a-b454-4cfd-9c49-992032a406c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_daa03cce-1344-41e9-ac3b-42e9f71b9063">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_f05600dd-3f3b-45c8-ad7a-ee2b7d576a42">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_2b3500f0-4a20-4854-87f0-4fb300a18aa4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_82d34efa-a438-4a6c-9b08-de581c3bd9f3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_08beecb9-b88f-4468-901c-a417f73a6e16">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_685cd4de-c2ea-44a1-a342-1eb42a67a88f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_137f20e5-e271-4742-a1a4-3cda4d2c8855">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_8efa334b-ca67-4ae7-9cde-9b0ec605290f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_24baecd7-94a2-4080-8a14-fe037a705333">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c3be073a-b454-4cfd-9c49-992032a406c9"
      id="F_68268d87-bdc5-4a08-ae3d-d8d5c84558d7">&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;2,673,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_c3be073a-b454-4cfd-9c49-992032a406c9"
      decimals="-3"
      id="F_011db606-34c1-47bb-802c-5a6ecd0a4cf3"
      unitRef="U_USD">2673000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
