<?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_36912a64-c5a1-4aca-8410-d838501a017e">
        <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:SubmissnTp
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_873f9e43-eecb-48dc-a479-a203fa58ed89">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_013dafd3-2fc8-4f6b-af49-aaa5b3121f0c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_d8c67745-be10-4159-a5d5-4aab4b15e879">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_d14d6b09-09c2-4fa9-9e12-df22f7a07728">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_25af375b-69a8-4c69-8011-1c83cf59a483">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_c2a58bc2-8e85-433f-ac5a-2bf583757af2">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_70304106-90e4-451b-a8dd-9570ae547090">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_d5075550-d5c4-49bb-a96c-ed20e950c54c">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_945c1276-a476-4449-be60-7f52947f3603">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_36912a64-c5a1-4aca-8410-d838501a017e"
      id="F_52e46b81-75fa-4fe4-82da-ad3334da21c1">&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;690,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_36912a64-c5a1-4aca-8410-d838501a017e"
      decimals="0"
      id="F_d0f1e910-b6a7-407f-ace4-5d6964e127f6"
      unitRef="U_USD">690000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
