<?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_32252866-0f39-455d-a658-43fba40a374d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-08</startDate>
            <endDate>2026-04-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_f9185bd7-9d58-453e-ac3a-dd43f8e8eb18">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_eacc10ec-8195-46d2-b51a-8f222923b463">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_34c3fd0d-0ccd-4831-9555-9e99977028b4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_18e3725c-cdde-4a11-ae1e-1277474ed386">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_6572b5c6-54e5-4906-8283-12506d9d6f4a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_d6296c37-0561-4ba4-ae10-5cd3b0fdfeef">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_630d9f9c-459d-4d20-aae3-0fabecb2db88">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_6f50afd6-6369-4b76-b432-5ecd41f9fb2d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_b6d738a6-a614-4818-8b8c-aaa92c3460d5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_32252866-0f39-455d-a658-43fba40a374d"
      id="F_b8216ac1-190c-4866-ac5c-206ffe28c72b">&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,532,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_32252866-0f39-455d-a658-43fba40a374d"
      decimals="0"
      id="F_c96bf499-7a8a-42f3-910b-d97f1d767148"
      unitRef="U_USD">1532000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
