<?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_d471ee62-40c6-491a-9903-e302669bdecb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_32b75cf7-9640-4b39-bb07-602d28273c0e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_529ab1a1-6d57-4187-947b-bf64bdbff71d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_cf978ce1-c875-4213-aeaf-11e2355f699d">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_f137a0f4-b4b2-45bd-ba41-28c88874395e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_09d371a8-0646-4c8e-b096-eff4c4f345c5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_835bbbc6-6272-40b3-882f-34258ded7fa6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_7e1581dd-eeee-4689-943e-1b36cc2e831a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_7a1c7a1d-0b82-47b8-a46e-2b0af0426908">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_27994393-ce0f-4254-8fcd-e20123b4e183">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d471ee62-40c6-491a-9903-e302669bdecb"
      id="F_eaf5a2cd-14ab-4554-9102-3936fcaf828f">&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,762,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_d471ee62-40c6-491a-9903-e302669bdecb"
      decimals="-3"
      id="F_e9023c4b-d365-49cd-a4bf-babcb45b689d"
      unitRef="U_USD">1762000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
