<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_413dfd11-ed25-4a01-b505-e40649afdd6a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_bd57e45f-051e-4043-984c-d997bcb27659">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_4345acfd-8739-4d9b-8ca9-23916d937591">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_ce269563-fb58-4d65-98f4-8ed65139c6f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_e4445be3-1061-4d1e-8263-a55ad4d87369">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_62449cd4-2216-410d-86ac-671dd44c0b04">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_239445be-33df-4443-b80c-096c95dc6ecd">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_28a6b594-07c5-451b-a372-549f3058df13">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_c8db526b-5c8e-498f-a4f3-c545211d4355">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_61527acb-f565-496a-a1ce-1519c39e601d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_413dfd11-ed25-4a01-b505-e40649afdd6a"
      id="F_ccd5d050-9cb8-414b-8780-ef79143fdc44">&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;1,083,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_413dfd11-ed25-4a01-b505-e40649afdd6a"
      decimals="-3"
      id="F_9053d8a3-f02c-4df1-a6c5-c47c700256aa"
      unitRef="U_USD">1083000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
