<?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_2774c95e-13b1-46a0-8d06-440a753fcbdc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_57666774-1c55-4eaa-be4e-51530b5fe005">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_95ba507a-7ce7-4e7a-b260-64315dfb55eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_a51af93b-a34e-4c93-baba-0c99bf042804">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_502ca999-ec7f-490f-80c2-814565cac48a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_e977e84f-94ef-425c-9fa3-49332de745f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_2b7570df-01a0-449d-a100-da940fba7b74">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_6938aead-f8ff-4402-a6da-295b606ae046">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_bb8f56b8-0758-4aec-a73b-98cdc6ada0a0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_f2a8bad3-a82d-43b3-89e2-8b8c139cb4b1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      id="F_56ed9ef2-e522-40b4-b77a-791de64cb7f9">&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,150,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_2774c95e-13b1-46a0-8d06-440a753fcbdc"
      decimals="0"
      id="F_b746afd9-0ed3-4caf-8445-537d6dd3989f"
      unitRef="U_USD">3150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>