<?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_dc3eff03-133b-412c-830b-0c186ccc9d33">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_17a9c957-f660-4712-9f8a-5d3d272ba822">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_63940042-fc90-4d00-84ca-4f903852a5b3">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_ded01b36-d6b4-41ac-87bd-699cb7b1c28c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_44131f7f-7bbe-4865-a6fc-672a4a0ba2e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_6e524b17-c120-4808-b418-a9fb0837f872">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_74de8b2a-531b-468d-9f78-43f23483efcc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_a62a0954-3f78-4f8c-8c2a-1f09856c3bb7">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_7e0d13a2-b14c-4ae1-afa8-3761a4a03bb7">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_a140d406-766f-42a7-86c2-e40a3e25c76a">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_dc3eff03-133b-412c-830b-0c186ccc9d33"
      id="F_29f5f854-8e66-4b8d-9f97-3d4c7c7c1160">&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;510,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_dc3eff03-133b-412c-830b-0c186ccc9d33"
      decimals="-3"
      id="F_46ffb326-6218-4364-80ce-972bb0e3339a"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
