<?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_b4003f66-8e10-46a4-a427-d3eadf0f2b4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_ae554a5b-8f74-40c6-96a8-050857ce2cd5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_cffd64bc-b6c5-4286-b3dd-615a6171b22b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_afef5dd5-4046-499f-b5f9-f7c98b840c2b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_abb4339f-72e2-4818-89e8-a2964c48b9ae">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_1c2a621a-8823-4ec7-93cb-820e19ad3014">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_2532642d-dcb6-4794-897d-08a64b3480b2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_5c5777f3-e319-4e09-919f-c4395d3f6905">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_bf5c8689-635b-49e4-9c33-875855360787">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_8556264f-3e10-45c5-9c20-a3fb45424640">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      id="F_120176cc-43bf-4fbf-96bd-1572c0ad1a78">&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;500,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_b4003f66-8e10-46a4-a427-d3eadf0f2b4d"
      decimals="0"
      id="F_3a72ebea-07e4-4d73-bef6-33900af72c93"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
