<?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_be2d9192-9fe6-4a91-b50e-f5e780b61590">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_6d16b49f-5e03-4843-a07d-25aa6b4f2330">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_e742d2cd-4d32-4393-8d3a-e6ca2e8229fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_38d4cc1d-5822-4900-9bc2-365c6c3a03b4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_0c82c000-8913-4282-9b06-96da90a16038">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_e70e17be-19d3-4ced-9aba-d5d407f0890d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_59adc277-7538-4da7-ac8b-ff5280418a7e">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_bfcf9e3e-0e85-440a-b183-ca864b4da024">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_722176c1-4165-407d-a9be-a354b58d8cb3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_1c66da87-688b-4ca3-b6ee-70ccdfbcd4ca">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      id="F_36b1f4c1-6734-4b3d-bf31-105152434507">&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;294,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_be2d9192-9fe6-4a91-b50e-f5e780b61590"
      decimals="-3"
      id="F_520e1ae2-a714-48ad-ace9-4b311ba776e7"
      unitRef="U_USD">294000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
