<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_685f86ae-9d39-485b-ae7f-0342c5405c35">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_98e57f08-bdd3-4c8e-a6b9-cf574dd3819e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_1828b0eb-6e51-4e1a-a8a0-6d87fb31a96d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_8ad21417-2151-4924-b1fd-b2cedef622da">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_c49acbb9-22d5-49e1-be26-8791a96cf924">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_16d9461b-11d3-47d2-859e-444b02c000ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_35b3f165-3d1f-4ff1-af78-7b416fa6688b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_0b2eb66d-14b3-4da4-90dd-8f007f298c2c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_111592a6-a903-4ec3-afc1-cbbd7e413a94">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_2e230c96-1f2c-49a5-87f3-530ba5bcca52">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_685f86ae-9d39-485b-ae7f-0342c5405c35"
      id="F_5ed738f5-f802-474e-90b9-9620522387fb">&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;947,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_685f86ae-9d39-485b-ae7f-0342c5405c35"
      decimals="0"
      id="F_b53da11b-273e-427c-91f9-9d42739d9422"
      unitRef="U_USD">947000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
