<?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_4c592892-cef3-4286-beb2-2f47c2f98746">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_f2a218f5-4624-415b-a407-2c0fe37a69ff">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_1894b552-3f54-4559-a620-4ef0acbeaf83">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_149a49a7-6f38-4e29-9f5f-cc2e296f11e5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_da24af0d-5ce2-4f03-85fd-9d813f794ac8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_15521004-c000-4246-9733-4fc32e559cf5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_cc17907b-364b-437a-a6cf-98dea126f533">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_d28d415c-8f7d-42c0-8740-bb87f75936ff">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_74fc4b57-d564-43bc-8b04-aa7a94287932">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_8c070119-6e91-4caa-a3cc-b03e4de9cd69">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4c592892-cef3-4286-beb2-2f47c2f98746"
      id="F_2afb756a-bec0-4fdc-9c22-80a9d36e29bb">&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,308,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_4c592892-cef3-4286-beb2-2f47c2f98746"
      decimals="-3"
      id="F_423958ce-3de5-4c7a-afc0-b7e609d627a6"
      unitRef="U_USD">3308000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
