<?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_35590675-18f0-4f24-b98e-39dbad3c0341">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_462157f9-58da-496b-a923-5ebbb7df2ee9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_44526611-42fe-4507-8783-9425eaabed08">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_2a7bebde-4a18-48cd-82b8-da1bebfba867">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_97b28ad7-878d-4c24-9163-f27d67c05524">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_2d905114-e7b2-421c-afad-a2d3624d0643">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_710cddf3-fa22-423f-856f-3d95f2c7e787">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_d321bb8b-a02a-4b2a-9302-45ab143eaba8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_4f9cd6d7-9af9-4f59-b3c3-54f7eb7b0d4f">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_953a65f3-fa97-45d8-9b87-3a1c7187dda6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_35590675-18f0-4f24-b98e-39dbad3c0341"
      id="F_574b0389-ba08-4090-ad3e-02a42c940599">&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,140,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_35590675-18f0-4f24-b98e-39dbad3c0341"
      decimals="-3"
      id="F_a54e8bc0-f047-4af1-9384-ae1ff3391bd0"
      unitRef="U_USD">1140000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
