<?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_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_2837a277-2997-421d-b2d8-0f41b8a36c61">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_8f0e3607-a63b-43af-825f-71e33c23ad91">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_d2ce43d2-f5d8-4aaa-94ea-1cc71d29345c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_968b4948-a16c-461d-9e9b-82672ef6ce10">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_2c2777fb-c4c1-4064-b9a6-6e10d6607f6f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_13e51a95-2824-45db-b6b5-8e0aeee34249">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_2b9910c7-c6fc-462f-a66b-bce0d03dee9e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_68c7359c-f922-41ae-b9e1-1131563e5fc7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_61c04ff1-cef4-480e-9cef-3426959505ea">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      id="F_23e6c13a-74a9-41d3-ad5d-0a60d1d80a80">&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,418,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_ed82e4ea-ebb2-4f1a-93f2-8ef777b56347"
      decimals="0"
      id="F_58974a5a-c3fe-4902-85af-e03ecceb0a11"
      unitRef="U_USD">3418000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
