<?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_6ff872c8-8109-4b9c-9702-53bba3a9213b">
        <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:CombinedProspectusTableNa
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_446187b1-a79c-4116-b329-d73424502890">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_bc09b0e1-0a7a-46c3-8aad-4dd5b76c4a9c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_91a802cf-96d4-4ea8-bf0a-7c05c7f3b6fa">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_c8337729-60cd-4a07-8a7d-8d36f2be98e0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_42e7d650-ba4b-4619-acf8-8de627bf57ad">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_cfcdadec-dcdf-4f51-b442-7214c8bacc16">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_5b7b34e2-60a6-4a4d-8f62-f012282f227f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_e62ee76b-60be-4efa-a827-8dfb96c81e66">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_d8ce97e5-1d53-4415-870e-8f0a019c0e1c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      id="F_527ac78a-0d75-4e64-8a14-76a1be2e2960">&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;2,575,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_6ff872c8-8109-4b9c-9702-53bba3a9213b"
      decimals="-3"
      id="F_f334157c-44d1-4dcd-98da-d0eca6e2f2bb"
      unitRef="U_USD">2575000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
