<?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_98b96931-2da2-41dd-a2e0-ec2ed8091e50">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_daa7c85c-60b5-4e96-9b63-88bff67325a4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_f21603a7-de41-407c-9759-81e8395b1749">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_e90f0a4b-4988-456a-8585-130f0ec1c41f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_2ae00d05-9c2d-4db3-a585-c63ae6e29fe0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_5a0edf6d-7497-4e60-8863-4e072cceb024">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_775c4987-a2b9-4ee0-9ad5-b95cd219b028">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_813380d4-c1fc-4be4-b1d7-2d629e17cb55">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_ed80a572-a264-422b-b24e-978913ea01b3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_4b200f19-2e64-4468-bf06-77455b6b0bae">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      id="F_f6ad5f37-2769-40eb-b164-67bc30a2c926">&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;11,915,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_98b96931-2da2-41dd-a2e0-ec2ed8091e50"
      decimals="-3"
      id="F_ad461f19-3ba7-44ce-8824-e3f58c638d0e"
      unitRef="U_USD">11915000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
