<?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_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_4d3d63dd-cac4-4c9e-817c-c4c2324b0dd9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_1f56a7b3-d154-40d3-a028-331c284ece75">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_f44defb9-579b-4bc7-9ed4-aac9d306b58e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_b9162ef1-c3b5-4ec7-8e16-8a03e67a1804">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_1be28f2b-f67e-4c06-ae66-83a4b3610696">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_ce7c9502-888b-4836-af7d-b1cfa1fd1411">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_1b6d79d3-8035-463e-a6a4-203b0799a803">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_5de8da8f-8b1c-4f2d-9815-7d3d07ca505b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_7c129852-6342-4884-b3ea-68102dd23db8">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      id="F_4e145dcb-2c93-423e-b202-ca6fde3a7fe2">&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,266,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_e9f260df-4b2c-425d-b3a9-6bfc5dc307a6"
      decimals="-3"
      id="F_69603025-2ce2-4af3-82aa-df263eef67e3"
      unitRef="U_USD">1266000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
