<?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_072b76eb-0a3d-4718-8f02-e88952f51976">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-29</startDate>
            <endDate>2025-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_cfdca882-ce47-4a52-85b5-165b5fb0a2a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_ac08e663-acc6-4933-b964-0b5b0a62d353">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_b466cd24-6f60-4f7d-b0de-dd1e32ceccca">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_ee1100d6-15ae-4988-bbc3-43593a33349d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_a11327b1-2dc2-424a-95bc-51bb40fee982">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_4fc3286f-1151-41ee-9397-237df317855b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_4317c049-c9f8-40b6-95ed-e38609de53e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_25c36a3a-b581-44d8-bf70-59355e37902c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_b4628ab1-98ac-4d72-924e-98567e4a76d9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_072b76eb-0a3d-4718-8f02-e88952f51976"
      id="F_4e08cc5c-734e-4c18-9598-1d9886f28058">&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;12,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_072b76eb-0a3d-4718-8f02-e88952f51976"
      decimals="0"
      id="F_4a6e68f1-f368-42b7-b241-5d0f69a12549"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
