<?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_65919a17-d9bf-499d-a342-e85e5a9eec9c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_d99c0a14-0c68-4d7a-ad91-5de703507424">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_176006d2-8374-414d-b85a-226bc2c601d6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_c71d9b1e-6e5b-4019-920f-137df9b88550">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_08c0f602-5ccf-43e3-8d4a-ee8880045df4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_ae8c8309-62c9-4e1c-b7f6-78ae808f81d9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_7201f6f3-174e-4a43-b419-c5e093d631ca">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_83054d6c-b331-4912-b26e-b00224a01814">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_94d3e1ec-0340-4390-996d-121cfd28f74c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_7dfd2cfa-3a03-49ea-ad24-1bbda1f141f4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      id="F_9605a40f-ca7f-4102-b6a6-05fc769c9f26">&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;948,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_65919a17-d9bf-499d-a342-e85e5a9eec9c"
      decimals="-3"
      id="F_c891a3a7-2485-4faf-b839-02392bbeebab"
      unitRef="U_USD">948000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
