<?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_00436c0e-8add-459b-8841-be413fc0759d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_108288c6-8698-47a4-b40d-e92162755342">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_b17b9c86-a7cb-4883-8aec-64c0edbbe9be">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_e609afa3-faf7-4703-9ec2-3e6318dea719">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_9b3dafc9-fead-4a96-b3a8-e4c9744de95e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_ca25a420-8c0e-4888-8168-74ba89f7b4e3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_775734f6-53e6-4fd7-bf30-b1ef58ff27a0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_b5649d8b-035f-477e-a44d-804191234a59">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_cf868362-c51d-4031-ac18-a858c89cfcdb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_9be713ce-f63b-448f-84d9-183ed069c1ed">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_00436c0e-8add-459b-8841-be413fc0759d"
      id="F_f144389d-3963-484d-a542-f3340b6814f6">&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,561,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_00436c0e-8add-459b-8841-be413fc0759d"
      decimals="-3"
      id="F_8779a92b-22fa-40e9-b0a2-e45e001a873e"
      unitRef="U_USD">2561000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
