<?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_79be2dce-b3d9-4b31-b3e8-277dabe06e6f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_548fbad8-a23f-43f9-a798-0ecac262e457">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_b935758c-deba-4d6e-b6c4-ee973c4be963">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_b1a7d5ed-676c-4d82-961c-b3d203b9f13f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_48657228-32a4-459d-8342-30b87b9f25c9">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_28538a89-9bd5-494e-999b-138c578ab5b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_070b567b-03e5-45bc-ba41-75f942ab9ec6">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_af22f3db-d5a2-4c2a-b0f3-03b3dff8c49d">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_1e5f3d30-98e9-4b81-8fdc-5bad5df1165b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_94b8e566-781f-4d71-bdbb-e82a1dcbca63">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      id="F_b1028c68-e7de-497c-84df-3a3da4b5cc0d">&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,000,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_79be2dce-b3d9-4b31-b3e8-277dabe06e6f"
      decimals="-6"
      id="F_b1d12497-93ba-4765-88f7-3b8cbd3387ce"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
