<?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_efb4a0c8-17f9-4643-8c2a-5916035fa1e7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_e9c76865-41e4-40ed-8986-0409bb172176">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_6c86f090-d7cc-48dc-a995-4a9d282eee29">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_873b06e9-cce8-4ca6-ae9a-4aade984ef17">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_649fcd7c-d9ee-47b8-a471-4751108da9cc">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_6a4a03b8-82b3-4070-97e1-f00f241d5016">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_0f4a626f-a752-45a7-9a4c-5d3049658833">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_b483e43e-adf9-468d-8fcf-e24bdd5281f7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_c8af3006-4099-411e-9881-40405a3b9fb3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_35996a0a-547d-429e-9449-f15a068fb9a6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      id="F_17e48faf-f8ca-47ab-b724-c7bd8e6dd1fd">&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;2,590,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_efb4a0c8-17f9-4643-8c2a-5916035fa1e7"
      decimals="-3"
      id="F_c56bc494-a0e7-4fb6-b85b-87ecf516e4ab"
      unitRef="U_USD">2590000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
