<?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_a8a36e6e-8aa6-47b5-968b-a661e82980cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-04</startDate>
            <endDate>2025-11-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_963b2275-bc18-4943-88c8-36a8837233bd">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_83c1b9b6-f6de-4dd4-b2ad-81f596835c89">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_fe8ceec1-2069-4f61-b35a-842da55181f7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_90f81735-7d52-4eb4-9203-584b5b698183">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_1d08bdf4-2e12-4060-8554-53bf82cad9f8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_b0fef8e4-bdd9-4cb0-adfb-15b70b6e153a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_7d713ad3-6af1-404b-8528-e28460521753">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_7e0c84a8-0e69-46cd-a784-eca3a6e21cb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_d181187c-b7a0-4021-97c9-daba10a82da3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      id="F_ae900b50-f07f-4c11-a425-96c6970555cb">&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;498,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_a8a36e6e-8aa6-47b5-968b-a661e82980cc"
      decimals="0"
      id="F_468a9823-9f26-487b-a5b5-6c365a4433ad"
      unitRef="U_USD">498000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
