<?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_7d20336f-543b-4a27-80e6-408030c483c2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_19d656ac-14a8-4aba-9e65-6e75cdfd7240">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_1146b4b0-ea0e-4ac2-94ed-990f8da18024">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_22953846-eba3-4868-b174-59dc7cfe7af3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_e0f180ac-1ae6-4c83-b6f0-c666e55e9e94">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_41c573b9-f330-48cd-8616-f3f9bc917d89">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_9b0113eb-6c26-4adb-83c0-81d602c9a60e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_86b8ac04-fee2-42d2-9bb5-1b71d6b94dcf">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_db5b3f7a-d2a4-4b83-90cf-4038e27be53a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_74333709-2550-4507-b81d-80308dc84bee">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7d20336f-543b-4a27-80e6-408030c483c2"
      id="F_2c784bc3-a40b-4217-a292-7faa0bbb4cf1">&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;631,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_7d20336f-543b-4a27-80e6-408030c483c2"
      decimals="-3"
      id="F_0ed06e24-fcc7-4f13-944d-af53d779b0be"
      unitRef="U_USD">631000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
