<?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_883daa01-193a-4db3-8dde-af035877804d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-19</startDate>
            <endDate>2025-08-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_df998bbc-a7a2-4441-ba2a-32a132220c69">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_61202c7b-9f09-4bff-af64-a2707478eb5e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_f40eb00b-d0f4-4c64-98e5-978b45489e12">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_93b336d2-c167-4fc6-9166-85add121fa51">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_4f6c0cbf-49ae-48f6-8f28-489689e4aff5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_493507ad-b6cc-4d6a-b269-7f8c1bf03a51">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_883daa01-193a-4db3-8dde-af035877804d"
      id="F_49b69b31-1576-46bd-a568-5b78779b314c">&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,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_883daa01-193a-4db3-8dde-af035877804d"
      decimals="0"
      id="F_ee5dfc39-f1f4-4668-8f65-aa84ecd2fdbe"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
