<?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_7292af3b-7cea-47d1-9694-5d994184f600">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_505a5b12-75bf-4a65-91a3-38c59431c6df">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_befb3dab-90c8-43c8-9f2c-8d80dffc5df6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_5abb0a56-541f-48d3-adcf-12feebd98f41">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_7ac3aa15-4727-4383-8045-c2d3d0977bee">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_f0c1403a-af3e-46ac-b96e-315bbd43d016">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_b32bc977-8f5d-434c-aef1-7cf17e089276">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_6426ba9a-e532-4492-b46f-c4a331e0cd71">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_b46f4a5c-2b3c-4185-bdc2-8ad058f05745">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_d92a5656-d571-430a-b914-aba206f4db02">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7292af3b-7cea-47d1-9694-5d994184f600"
      id="F_188baa8d-2341-4ce5-81c4-1fd4cc4f9f44">&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;1,250,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_7292af3b-7cea-47d1-9694-5d994184f600"
      decimals="-3"
      id="F_3d6d13ec-9962-4fe4-8d1c-f3bfc4ece385"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
