<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-28</startDate>
            <endDate>2025-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_8dddc532-1537-41fe-b48c-b136745a3daa">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_e7fff5af-3bd8-4a30-baef-7209cdaa199d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_a5dcd0f1-3ecc-408f-a41d-f4df9557c7a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_46d75d4e-8eae-4fe2-831b-a328ffa4a8be">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_24de5ec6-ad49-4bf6-963f-273f0889ac95">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_e79a54eb-5c81-4570-af85-595c0b234fdb">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      id="F_a42eb2d8-4af4-4a53-8c12-e1d4c6d9d0e0">&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;11,043,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_c1c9c17c-90cf-4abd-af1f-640bf926a3c3"
      decimals="0"
      id="F_2be0ccaa-10e7-4e64-9132-21a03dc151f0"
      unitRef="U_USD">11043000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
