<?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_62482c3b-38a7-4f5d-b340-4b7d312e804c">
        <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:EntityRegistrantName
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_d531ce7e-8943-41af-8c9e-d3e495215fc1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_2506c6e9-fb4a-41d0-97ae-b1fa60fbc43e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_242ccf0b-9f61-400c-9556-9f4706a099b4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_053a5827-002a-493a-9c6c-102f43f7ca95">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_9f97a99d-7fe5-476e-9aa3-4a93e07ecfc9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_3cd17b68-e060-4826-a80b-a6ed12322281">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_5df8fab2-5ed6-432b-9333-a1034f79f159">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_ddd72df4-785d-4aef-95fa-e40f5648e0f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_d8f4ccd8-85c5-416c-b43d-b738103ef0b0">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      id="F_f0782f3a-e16d-4610-983c-6666ed6076be">&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;401,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_62482c3b-38a7-4f5d-b340-4b7d312e804c"
      decimals="-3"
      id="F_5f34e1be-a3c3-4c2a-9184-96c7ceb42308"
      unitRef="U_USD">401000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
