<?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_5fb4871c-93f6-4383-890c-48ed932aa4fc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-09</startDate>
            <endDate>2026-04-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_7bd63cb9-9db8-47b2-b4a8-4f10cf0c0ab2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_3bd8252d-0aef-4265-a508-41e632fae53c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_5b3ecb3b-3dfb-421f-9bed-d1ee48fe951a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_ccf7b056-8393-4097-8d28-dba772622b1a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_dece8413-3430-421d-8e54-1d0c47fccf43">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_0dc606d4-8439-444c-8b61-9d5547277294">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_f511edd9-4c5f-4128-b75a-3ee29a31b6ac">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_e5d405ef-8ad9-4814-aabd-af9abbb80cab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_6435213a-05c1-45a4-ad0c-1a895bb4a7c5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      id="F_a1d2d9e1-d82f-4350-899a-38a161d12205">&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,250,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_5fb4871c-93f6-4383-890c-48ed932aa4fc"
      decimals="0"
      id="F_649b4b32-568a-4346-a297-991df1d40533"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
