<?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_ee2787a5-a7d8-40b1-ac6e-70bea9928827">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_505b2caa-4306-4ff9-bb27-6d292852c1a7">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_87f4be96-2652-4b13-8329-6133e149b797">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_80ad0324-064c-4b9a-86b1-b62abb9784a8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_c447f7fe-bb86-45dd-826d-3cf67f711523">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_05be8da2-c65d-478b-99bd-2d22dcc77388">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_b625349c-0bbe-4317-ac53-7d489d5f309c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_005bd44a-d8ee-4aba-8a24-ada652544f40">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_58bd5b81-85f3-43e3-a2a2-b862d3ffb4ec">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_dce008ef-b689-4b36-b492-fcdf87180e0a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      id="F_56fd068c-0b83-4f22-ba42-d871fb1dbbb6">&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;2,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_ee2787a5-a7d8-40b1-ac6e-70bea9928827"
      decimals="-6"
      id="F_e01ef76d-ffa8-4466-9ea4-ecf54942404b"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
