<?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_a6fb307c-5659-4dd1-b1ab-b049080bc973">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_5acbcb48-bf06-4612-abce-f98413bae18e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_b4328ea6-674e-4bba-b6ae-ea3127238c9b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_64b0281e-eac7-4277-b26e-6a712aeb5e56">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_31c89e80-c754-4417-a9e5-ae4112cafb83">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_7e7ef3eb-d41b-4684-a607-3c4dfc3b99f7">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_1bc2ed52-e00e-4e7d-afb9-3dc754305436">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_b5ca8949-9b71-43b4-802e-11c9c25e167e">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_ffa32926-f5e7-46dc-8c14-901a9e984094">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_285b5780-9100-4658-a1ce-2441d6634f46">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      id="F_fe9c61de-627b-4ab0-aeb4-d0e110a09821">&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;717,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_a6fb307c-5659-4dd1-b1ab-b049080bc973"
      decimals="0"
      id="F_c21527d4-d57a-4295-9537-757b200faea7"
      unitRef="U_USD">717000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
