<?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_6520e59c-cb17-482a-8641-b8aa4a9bcaea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_6d6d7b5c-4425-4141-9004-11f9e40a3182">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_25998efb-71dd-4f36-a494-0c010e8f6c89">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_43e5f985-24a9-458c-b1cf-317e3e38611c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_76e92dc0-ab8a-42cb-b6b2-249c9defa2d1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_161fea0c-7949-4d0c-93ba-b8abe6c0289a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_76867e05-ec8c-457f-b85a-4ac5dbd68efd">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_de5e1b60-b43d-423f-a8fb-d8f175e8894e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_d223d082-d35c-4fa8-ab4c-9f95ee563b55">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_17a5d061-bf60-4105-83a7-34756a1c1adb">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      id="F_28a24a88-7c0f-46a2-882b-09712916d250">&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,371,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_6520e59c-cb17-482a-8641-b8aa4a9bcaea"
      decimals="-3"
      id="F_f4234893-6ecd-4b9e-8bf4-59db4ee54393"
      unitRef="U_USD">1371000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
