<?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_5ccb4e25-476c-4fd8-b125-95c172216481">
        <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_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_e0e9fd03-caad-4408-9899-ce92a891aa43">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_7478b1d2-b3f5-4b9b-a8a2-4c9edabd11f7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_3ca9a831-9442-433c-83fb-c682bd9ca325">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_b48a0df5-ef5f-41e4-9ecc-da1734f2774a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_9322b0e3-76a4-4191-801a-6cb7c15bbfe0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_09cf3470-0054-4e61-b128-b6e6ea544086">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_6e0b8182-a1d3-455d-8892-48c2c2377703">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_a37a1b3d-c1e1-435b-985c-0f8e2fda2b31">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_01376bd8-f405-450b-932e-14e178d867a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5ccb4e25-476c-4fd8-b125-95c172216481"
      id="F_96042384-f498-49f9-9be9-8e08e79a74c2">&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;28,540,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_5ccb4e25-476c-4fd8-b125-95c172216481"
      decimals="-3"
      id="F_2ebd66a6-83fd-4f18-96fb-d4a7af27d397"
      unitRef="U_USD">28540000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
