<?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_5e4513a6-04a7-4b8a-96eb-ce30e42140ef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_5c09d5fe-c07f-46c7-b0ac-756f7cd67dbf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_c28ca124-7eec-49d2-a27a-58ed83b4a62c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_3d7fc3c8-07bd-44ef-a883-e790e69666ef">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_dc4fe62b-a310-4239-b8fd-1c4d6d972704">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_5c7db53b-b448-47e8-b318-8558fc7be020">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_fe5f0996-0ad5-43c4-bb98-b85903279aaf">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_a212d663-bcdf-47e6-ae95-254e8721d905">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_8c31d619-1152-475c-bdcc-488527d10f86">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_79b65655-d8de-4a12-9e5a-545e49627f50">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      id="F_874828ae-49f5-4a21-a7c6-c19bec667a5a">&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,550,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_5e4513a6-04a7-4b8a-96eb-ce30e42140ef"
      decimals="-3"
      id="F_b496654f-b328-413e-b35d-b0ee68904dc0"
      unitRef="U_USD">2550000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
