<?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_1d97b672-d353-433e-b2e4-5c26221e661b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_078d069d-9dfd-41c3-b9c6-d7d11beaf305">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_4bcba0ca-8e97-4499-abda-902a5e6c99b3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_446d4a7a-1f54-4f33-8aa7-9329b550e891">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_d46f21e3-7ecf-4222-b02f-a906aef69f1c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_0372a609-fea2-4de5-9303-36b55fdf3dfd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_0ef2505c-88ed-4b1c-97c2-d5f9def7c1ed">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_5e11bc47-2881-4ecd-aebf-bac495f03f04">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_6038a23b-5392-4589-a0e1-53409db69c34">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_e97dcc8f-a335-4cfd-8799-149d129bae03">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1d97b672-d353-433e-b2e4-5c26221e661b"
      id="F_fe4057b3-5b82-489a-b933-ca6bb999139c">&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,200,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_1d97b672-d353-433e-b2e4-5c26221e661b"
      decimals="-3"
      id="F_d8a577db-deb1-46d8-be41-ba141ddf7376"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
