<?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_2712223b-919e-4366-b0c1-609044b81978">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_9c05dc8c-11df-4526-92b9-f340a77efd4d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_aeb6098e-df8c-48fd-b99a-34197daad3dd">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_26daeb2b-b6a5-4779-a719-33273f56291e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_e5f97324-5285-4077-88e0-156c1a9d9f3b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_1a308de2-aac3-492c-889c-972566e9d4c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_b8a71de9-6d3a-4bd5-8684-5ffc929f331d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_8482ffdd-9b51-4e6a-8840-83307cdc1563">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_2daaef08-08e0-442e-a932-7d7b951b3e09">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_f693d61e-9f31-47ff-831a-f1789d87beac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2712223b-919e-4366-b0c1-609044b81978"
      id="F_ac92e2e7-287c-4e8f-9937-dfa43d17ea06">&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,000,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_2712223b-919e-4366-b0c1-609044b81978"
      decimals="0"
      id="F_4b110a36-30c6-4696-b715-c85accb53e20"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
