<?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_25e0e10c-e59b-46e1-ba95-209ad005dddd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_92b1e6ea-4ae2-4e4e-a072-1f1577ed7728">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_29685704-3b18-4da1-82f7-b0cdfc2cf760">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_8bbca4b8-aaf1-44a2-b6f4-272c18124bf6">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_67223a58-0d7e-45fd-a5f1-6357178c4484">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_8a574711-ba6e-48ce-af83-c0312a351515">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_a029b550-4022-48bb-9e7e-9e1214dae9f7">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_06df56b6-4e36-45e2-8f61-062a0470e803">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_476b6bdb-1023-4f7f-87d4-544f1aeed114">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_a7ec7588-4f6e-4dd6-bb06-6fbbc82ff863">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      id="F_73cf64ef-5829-4741-8ea5-fb9d5f3c98f4">&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;7,081,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_25e0e10c-e59b-46e1-ba95-209ad005dddd"
      decimals="-3"
      id="F_55554ad4-21f8-4d1c-a9b7-640ff270759a"
      unitRef="U_USD">7081000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
