<?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_8c2a8ec7-414a-4c27-9663-c02664326416">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_50e4252c-0311-4dfd-b6a3-46fb7d3a715a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_bc444e4d-c0b0-40ad-9bc7-9dbef3d0eee4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_125b7ebe-a8fb-4bb6-8c04-40d530072597">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_17b2be11-df2f-4495-bc19-6a5a814815ae">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_816eccc1-a5bb-4ab4-953f-0d529eefb3a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_dfc0ed16-bd5a-4399-bfde-dd7a7c9a93b6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_d0aab7e9-fd9c-492a-9339-3b0d5230a248">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_a336d99e-84a3-4f1d-afd0-a9cfefa3d9f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_1c87ef27-b25d-48c1-b991-2ed7e42a97a4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8c2a8ec7-414a-4c27-9663-c02664326416"
      id="F_2443b68d-4271-4c08-a763-ecdd1eef1f64">&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,000,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_8c2a8ec7-414a-4c27-9663-c02664326416"
      decimals="-6"
      id="F_49aaaed8-4c11-45b0-bf64-c1c1a0f45db2"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
