<?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_3062d441-e654-40cd-9259-0f91a96661d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-06-13</startDate>
            <endDate>2025-06-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_76aa9ed4-8061-470e-827d-b409c7e45c36">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_17b8f5aa-e56a-42a5-b987-676718861230">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_82fd58a7-4e0a-46c2-9d9f-d38c72ed7c2f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_d57a86a7-fbcf-4145-ac57-56a1db96e39f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_b8b351d0-5f3b-45f3-bd98-0a9b10c501e7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_17c8559b-d615-4c21-bb4c-6f16d2fe9253">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3062d441-e654-40cd-9259-0f91a96661d0"
      id="F_f7fd559f-bb07-48cb-97dd-2344649631cf">&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;3,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_3062d441-e654-40cd-9259-0f91a96661d0"
      decimals="0"
      id="F_677fcd6d-144d-4164-8d15-7a63fa1283c4"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
