<?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_05927635-91c2-42f8-b946-3d3588cf0656">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_9d9505bc-087c-477f-9ee3-42d29dfece37">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_abd2e012-219f-4108-abf5-a762da43f74a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_70c6a3cf-4ed0-4acc-9f0f-43d4503ff9aa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_d21b2968-e1d9-4630-902e-b08687909d55">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_987696ba-914f-4105-b072-8565cde929ad">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_677f66f5-6be0-4767-933f-55d543c83e24">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_a9825447-e7b8-4a62-b338-0ecb5cb5bfd2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_078c46d2-8358-45ff-8bc6-01a7f2c3d1b6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_8702c1b2-46ec-4ae9-a31c-b9dcf1194e91">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_05927635-91c2-42f8-b946-3d3588cf0656"
      id="F_ae6de2f0-d565-43de-b4ba-8b85a706afb8">&lt;p style="tab-size:26.66px;font-size:12pt;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,012,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_05927635-91c2-42f8-b946-3d3588cf0656"
      decimals="-3"
      id="F_de205ef4-d7c8-44ff-a78d-d17526905ab0"
      unitRef="U_USD">2012000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
