<?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_b7ee9103-a049-4bd3-b3e4-4f0156887600">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-29</startDate>
            <endDate>2025-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_7f44d6c0-ac32-472b-849f-fbd47f097c69">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_d4fe0220-7b1b-4aee-bfea-188b68808c7b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_3291ee13-60d5-4c07-9c7d-8c8125a3cfe2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_29265c79-c913-4ffd-aa22-e7310f4867ee">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_d176ef59-2ea9-4346-b68a-faa1200446d9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_951993c6-eff7-4d5d-a26d-a7d5dcdfcb4a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_1cddb3ba-67c7-4ced-896c-eb4e67df909d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_79d3cc7b-4d14-4b3b-a4f2-b92b1ed7b857">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_baf8a0f8-0d52-42db-8dfc-e643eac13c29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      id="F_9241cd28-c9f9-4479-905e-9cf7cd9f45f8">&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,685,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_b7ee9103-a049-4bd3-b3e4-4f0156887600"
      decimals="0"
      id="F_2663946e-0eea-49fb-bbbe-f77ffea1cb73"
      unitRef="U_USD">2685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
