<?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_4725ef72-3df8-4797-8194-88d64860e31c">
        <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_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_7b16e758-0d0d-426f-a4b6-f0f7aeeedbad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_2c21a1a6-bce1-4a08-af13-2bd80e8f4980">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_998cdcc0-b8e9-48d0-a3f9-3c86185652a8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_3f9abce4-a384-4388-abaa-80acf64874ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_3ffd3c72-10c9-49c0-977b-1691e9f33541">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_27dbb653-4c39-4053-b548-2db6a47593c3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_9e0059b5-b018-4251-849b-567b80f35cad">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_7c70b4c3-bc6a-4836-b09b-896be8f5139a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_9d9749f0-64aa-4d3e-9542-6faf81fdefec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4725ef72-3df8-4797-8194-88d64860e31c"
      id="F_922293e1-c3f6-42de-8932-eafe546dffb2">&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;400,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_4725ef72-3df8-4797-8194-88d64860e31c"
      decimals="-3"
      id="F_77649964-d3c4-4663-adde-5459221b62c6"
      unitRef="U_USD">400000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
