<?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_0f39c8af-c053-45fd-8bde-116ad31d4153">
        <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:EntityCentralIndexKey
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_9555e318-a4fe-4bee-8a3c-8a2e61e5baa4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_e0869e0b-595a-4235-a981-7035f7386817">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_c560566a-8a59-44c1-ab1a-a6c989739d31">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_11362219-1e64-4a55-a980-6471d49f28cd">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_71af2f30-96d4-4a21-a3e3-d3d330310130">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_5ecde576-0781-4b97-a51d-ed22bca9aae0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_b42fb5a1-5058-47b4-aa6c-405341719a61">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_614f7c94-3b88-4067-9c96-893eeed5e268">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_3a2bb6d3-d170-41f1-9c31-e122ddd6961d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0f39c8af-c053-45fd-8bde-116ad31d4153"
      id="F_c3ba24ef-0e4b-4214-b3f7-70a5c68b6c1c">&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;1,432,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_0f39c8af-c053-45fd-8bde-116ad31d4153"
      decimals="-3"
      id="F_feeaf069-5105-4f9e-a9e0-13c906dbbb20"
      unitRef="U_USD">1432000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
