<?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_7d9b5e62-bd25-497c-901c-bd8d4070275e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_b70893f4-6fee-4834-92c6-e5c3285c2f3a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_16ad59d5-7f1c-4e48-81c9-213959ce9f6f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_2f2927cd-85e8-4b54-87fb-820d222f3e3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_22ccac64-88f9-45a9-8b63-d3ca82ab1944">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_df3f132a-11be-4a0f-82e2-b00fc8e59022">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_b7f37f68-79db-46d9-8a57-04ecf6ca47c1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_eff3966c-86f4-4bb8-abb5-75bc5d637832">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_ce7fa7d1-822b-4cbc-88a9-2dcb373fa2ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_136fd4b4-7096-4a0f-a0d7-fa2933d88694">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      id="F_9421dbda-b6c2-4ffd-bde2-b3066d708931">&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;6,277,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_7d9b5e62-bd25-497c-901c-bd8d4070275e"
      decimals="0"
      id="F_db7bf3a8-557f-4781-b11d-fbdb1504ba5b"
      unitRef="U_USD">6277000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
