<?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_9ad41401-f26a-4005-9293-848925808c3d">
        <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_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_46fd9cb6-fab5-490d-b83f-1f0f99ad0a11">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_dfec8be0-320e-4948-8965-22065ab4691a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_717aceb1-8383-4ab0-9a4f-c3928d76edb4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_abb3cc3b-5a8e-4b15-8137-0923d584f5f1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_a61c1296-953f-4121-be4b-9cfd5b42fb34">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_24297816-1611-4561-8eb6-43eff8d4e704">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_80a8ecc1-390f-414a-a0fe-2d9919aa725d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_a07188e8-3b44-4de3-bb0c-3f26843a4583">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_26e9b6eb-48f3-4879-b9bf-1e9041bc4965">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9ad41401-f26a-4005-9293-848925808c3d"
      id="F_0440045e-1c81-4c9f-8b8d-c0a82aa955cb">&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;275,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_9ad41401-f26a-4005-9293-848925808c3d"
      decimals="-3"
      id="F_8afe2b2f-9896-443e-ac7d-8e1484819dae"
      unitRef="U_USD">275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
