<?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_c8f62f01-170a-42a5-afa7-b3adafbbd8e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_80c548f6-0b6c-44fc-ae7f-c1a28c6d636a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_a3bb395b-39e6-48f5-a772-50bf8e7e7f42">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_c930b1ac-d43f-4d7b-bbc9-5cfbef7ffd1d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_347cfbd7-4c29-48d8-9543-d04291e45458">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_99567bea-82bf-430b-b86e-cb23161c958a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_d50cc3ae-08df-4ec0-933a-89d3a44bd142">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_fdaf659a-a075-48b1-91e0-c510b4fd8eca">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_bec0fe4a-c09e-43a4-9e9c-30a59d0e2cdc">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_4da9172a-b7d4-431e-81ba-c588b16b99d5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      id="F_edb7a78b-6734-475a-a2e8-4ad380e9b1bd">&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;4,723,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_c8f62f01-170a-42a5-afa7-b3adafbbd8e0"
      decimals="0"
      id="F_696ecde9-8ad8-4e3c-8a5f-6cd25dc785e4"
      unitRef="U_USD">4723000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
