<?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_6ca0585e-13f8-4b21-9b5b-56184eb6b290">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_67c709a4-b75d-4c36-998c-f7cf1a6ace83">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_499aa86d-8bfa-4fcd-819f-bd782b786fac">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_8dc2edfc-5fa6-45f6-9a8c-2fc7de7786eb">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_839d5b81-f00b-47a6-b2c0-1e71c6b9acf2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_6c7a3668-9f3f-4d78-9fa3-8a897232efdb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_e22874b7-eff1-4c22-8e91-d3c1d1d6e85c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_5af9789c-6cee-4cd9-b497-c3de407fead0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_b1f744eb-8dbe-46dd-8afe-73b6e26d222d">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_59e7c017-290c-4411-976b-857abec398b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      id="F_3fb940df-a140-458f-8dd5-f4533618a88d">&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,822,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_6ca0585e-13f8-4b21-9b5b-56184eb6b290"
      decimals="-3"
      id="F_c1bf43ea-b256-427c-b571-f0505eacbce0"
      unitRef="U_USD">1822000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
