<?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_16679bdb-1bc4-4b79-b69e-c41cb74029f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_3941e744-12ad-4c0b-bcd0-49e6830249e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_1488c910-2735-4f24-96db-b6d0e8be173a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_7c30dc28-e233-448e-b745-f1c279dd8333">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_bba078af-cf4a-4233-9574-c864eaf3fe11">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_fc4e41d0-5f44-46a8-8d5b-185e12ec1769">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_c935683e-93e8-4d49-9fbf-08aebb33edf6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_f9309e8a-47c6-4e71-9d33-f30d788cde74">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_8d522fb9-253e-413d-916f-3d363978e65b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_bd75ace3-02d6-4917-bcad-1588a53139ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      id="F_2673ea29-2d9a-4986-9d6d-ef78f99a34cf">&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;2,381,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_16679bdb-1bc4-4b79-b69e-c41cb74029f5"
      decimals="0"
      id="F_aad859b9-3dca-4bda-a08d-3d780d97af1f"
      unitRef="U_USD">2381000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
