<?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_ed0ce1f5-080c-4791-97bc-37456e137d46">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_60b6b9e1-6898-435a-8b29-d66748c46aba">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_749370ca-4b60-4ffd-a5f6-de6ecb224840">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_1afc90b4-7a79-4bc1-bbec-fc85673e4fde">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_7b88ed12-bd6d-458e-a3d9-368528bbb2a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_2117a6a4-3322-4c5e-aab4-ec3eb6ba86cb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_5f9a169a-7cf0-48a4-a7c0-d1e603f3a57f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_cd2c0fb5-c835-4647-a1bd-3d4a931db359">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_6189f111-ff2e-4844-a1e0-f3efc70515bb">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_2e199c30-780c-4737-b43c-df242e6b2a26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ed0ce1f5-080c-4791-97bc-37456e137d46"
      id="F_ca3f624d-6e97-4ecc-beac-92360bb92979">&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;3,525,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_ed0ce1f5-080c-4791-97bc-37456e137d46"
      decimals="0"
      id="F_ada95450-0f2a-4983-aea3-323492827d11"
      unitRef="U_USD">3525000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
