<?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_3165e2c9-9c46-4c8a-a804-cd43683d9356">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_0430fdf3-b8e5-4d7b-9a1c-9a297f35b63c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_aa78f571-123d-44a6-aa4c-b97f3833f3d0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_edcaa125-b388-4cc9-91a4-08cee515238f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_6bfb1770-0247-46de-8a2f-76b96f01095e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_0f04800a-1c7c-44e8-b239-41dd0b1f13f2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_33e8002c-989a-4677-b75b-dcad09aba51e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_5dc44c28-cd6f-4f59-b3ab-e65b8114b638">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_8192b783-55ef-497a-b359-a0f1effb6030">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_71488395-56d1-4a75-8dbe-57958e72d990">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      id="F_e76d20c6-3fc5-4b42-845c-d6a3898d5ba9">&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;22,325,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_3165e2c9-9c46-4c8a-a804-cd43683d9356"
      decimals="0"
      id="F_58db1f8b-2621-491b-938f-50d6361c0fc3"
      unitRef="U_USD">22325000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
