<?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_96809a6e-7b0d-43a8-ba90-f9a2c3653265">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-26</startDate>
            <endDate>2025-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_37c74a01-e9c0-49a0-a110-68de17684f94">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_92dc2825-b406-43b1-9d38-8c63250e58db">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_b0cca9e5-9c4e-4406-8a0d-e12ce7d60cdc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_80b057b4-7eb6-42e2-9342-b4458433ab02">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_7f459499-e798-43d6-8c50-846f6237adb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_4bb1785d-1e72-4d40-9510-1d990a80287c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      id="F_c1e09b50-c7da-44fe-9670-4dd23e3112ba">&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;9,908,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_96809a6e-7b0d-43a8-ba90-f9a2c3653265"
      decimals="0"
      id="F_5eb0475b-3c63-4635-84b5-e8cb1c864f5d"
      unitRef="U_USD">9908000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
