<?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_2dce0e05-9774-4cb5-a388-19094b2db537">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-22</startDate>
            <endDate>2025-08-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_ed361928-0b27-4c05-bec6-d6caa903db94">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_28ce5ee4-cccd-495b-aa0c-94548efa1eba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_bf211469-45be-4b80-94dc-0b1ad8329d6d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_4bc9932f-a66b-46ac-98ab-e290b4ce9570">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_db410623-3d7d-4169-9d9f-26b7a26fa917">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_ac5ef72b-1463-4dc4-b186-6041671b4b64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2dce0e05-9774-4cb5-a388-19094b2db537"
      id="F_08a621a6-2754-42c9-be2e-2ea9668d2cf5">&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;3,000,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_2dce0e05-9774-4cb5-a388-19094b2db537"
      decimals="0"
      id="F_94f95d27-d3b4-440c-9bdb-4f6b04483d9a"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
