<?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_bfa501ee-7202-4fe2-a3df-7f8311148fec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-24</startDate>
            <endDate>2026-08-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_2bf7a008-3b26-421c-8475-0999fc42a52c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_df3a6c59-8ca5-4f46-b15b-4598678a8b49">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_822c3c39-8d63-4bd6-8638-88a23063ac3d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_72fe25fe-7335-4e42-ae1f-81db9db06d83">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_bdef74f5-3a9d-4be3-9d7f-80daf0b3b6eb">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_7eca631f-1018-4efb-ab6a-020186f669a6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_3ecd9b13-33a4-47fb-a143-dbd1dccf320a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_5ad36d00-a5c0-49f3-a7be-649c85f02e83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_00c52944-a0ed-43ad-bef5-7736e6212c30">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      id="F_a2a41240-8cd5-4dc8-bad0-318081d91047">&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,102,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_bfa501ee-7202-4fe2-a3df-7f8311148fec"
      decimals="-3"
      id="F_81901a31-9d3f-4286-9e1e-5ea946d13094"
      unitRef="U_USD">2102000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
