<?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_1278e659-5aa9-47c4-9232-77697b9ab3ef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-30</startDate>
            <endDate>2026-07-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_1abcb986-966b-4406-bad7-2dfe9ef438ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_fd28434a-d36b-4790-af45-afda46f46d9b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_8c5ac505-8dd8-434c-9782-8363a31e0ab0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_fd25f078-9c32-472e-b4be-4e85ae6c77fa">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_1ea5592e-a240-4b17-a93a-bc81507de8a6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_8121b05c-b190-4c49-ae4d-c2b1faa65b88">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_9b92eca9-1e9e-4e75-84f8-f7c245ec4509">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_91ebd9d0-466d-4b06-98fe-5ab69b3217d9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_d4977913-44da-41bd-8116-26ab9d2a4bfe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      id="F_2d541d5c-ed3d-46cc-b99a-9c097781b7e6">&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,157,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_1278e659-5aa9-47c4-9232-77697b9ab3ef"
      decimals="-3"
      id="F_64c2e5d3-8140-489c-8337-164972f93c59"
      unitRef="U_USD">2157000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
