<?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_3954506f-51d4-407d-91e0-85b730a34ce2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_fab90aa4-2330-4689-a7cf-af26021f1f60">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_9ddf3576-41eb-4152-a0d4-4da14a57a7cd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_390bd85a-b116-459b-a28b-bcf93c1abfb5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_8f3531c3-8508-4ed8-96c9-618d21e0d11c">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_5b952885-07be-41f7-b99f-fdd1c384854e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_11a62df4-e996-4c1e-ba18-fe4888b9fac3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_1ab50379-74e3-4ea6-9873-d6b072057c84">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_3ae6d817-a6a5-4441-b855-9916397cf6e0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_73487c4c-b716-435a-92b8-e9f04c3eb19e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3954506f-51d4-407d-91e0-85b730a34ce2"
      id="F_fb3f59a8-176c-49ba-830b-aa1447d2b2f1">&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;3,100,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_3954506f-51d4-407d-91e0-85b730a34ce2"
      decimals="-3"
      id="F_d3bb5a7d-5299-49ad-9fea-177d94826e76"
      unitRef="U_USD">3100000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
