<?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_42604752-40fa-49fc-b8e9-5bb4b128d309">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-03</startDate>
            <endDate>2025-09-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_4ca55891-1a35-4139-be6d-e8c8b92e3b97">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_5790b5ae-0635-44cd-b5bf-4d6c3fc88c2c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_04b662f1-b9bf-4b69-aeb1-ec0be50a9e13">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_dacafc7b-fa97-4885-bb9d-93670b1bc487">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_92e91171-10d5-4146-be11-b2861ddd6f41">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_16f6b10d-bbf7-4f5b-a708-809768d410a3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_42604752-40fa-49fc-b8e9-5bb4b128d309"
      id="F_a15b2e27-0fd4-4206-bee9-afe143b5d1fb">&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;783,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_42604752-40fa-49fc-b8e9-5bb4b128d309"
      decimals="0"
      id="F_2f41744d-858f-426f-8485-244b8cfc1be7"
      unitRef="U_USD">783000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
