<?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_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-06</startDate>
            <endDate>2025-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_cf22d9e0-6bd1-4bfd-b15f-b5f67ae266dd">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_232f3ea7-e72a-43bf-b8d0-86d0c4c1f846">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_5f7bdcc4-4ff2-4b13-a100-4e2629c21acc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_3e180aab-a9ed-44e6-8bb0-ed2a21a04999">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_bb370c98-b7fd-4bfe-bea1-724840ee9b5d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_85e4209f-b489-4cf6-aa4f-925f793fcba9">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      id="F_15084cbf-04a3-4bd3-a8fe-0c225b6c0b35">&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,222,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_d2dcbfbb-aba6-4886-88e8-eb97cc160f9e"
      decimals="0"
      id="F_7cf696c9-d387-4dd4-9ae7-463fa4e31800"
      unitRef="U_USD">1222000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
