<?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_7be11f30-3f40-4c81-905b-7a8083c7e0e6">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_0ccc4e9d-6b37-4e8f-b626-7e05dfd28b24">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_dc70c40c-bbd3-433e-ad6f-c8d585c121dc">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_418f5567-e224-4ddb-92c1-c28f521f498c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_eb31bace-97b2-4114-bcc0-b313c95aebf6">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_b499383e-6146-4e7d-a8a8-b807349da172">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_9058c355-9f08-4cb3-8fb3-845ea65caa7c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      id="F_36df4f89-0213-452f-a68b-ff3cd1a7e422">&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;2,471,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_7be11f30-3f40-4c81-905b-7a8083c7e0e6"
      decimals="0"
      id="F_395970f7-1084-49d0-b54d-6d93b78b0467"
      unitRef="U_USD">2471000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
