<?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_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_9cd78156-1356-467f-a82f-794d3f496b79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_82a23270-a637-49f6-808e-ff4510dbc82f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_f9d3ef74-7cfd-4f20-98eb-87bcb348d1f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_6f71d87a-de75-4470-babe-8fbde7d86392">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_178cb78b-0d0e-4c07-986f-e0930c66af5c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_8c44e62a-8854-4e6f-9bcb-12d1a1411f50">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_e6a1063c-2ab2-4a6d-81dd-42340d4ee434">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_3167e38b-a3f5-4fcf-adc7-4b55b01fb9be">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_46cf3c1a-69c0-4a15-b8ef-29d4127be930">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      id="F_6c4c2f36-a474-43d6-a398-c3021e2ab43f">&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,120,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_47d9f84a-adb3-43e8-ae3f-3cd608f5ed46"
      decimals="0"
      id="F_4add568f-ea98-49cb-a675-d09a0ce4b777"
      unitRef="U_USD">3120000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
