<?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_f75aa440-f87a-41c6-af5b-ff1f677b1427">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_976a8709-5608-4741-b0ee-b2655eeb8c3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_4e78f4d2-ae5a-477d-8282-9dcfccd0eabc">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_98fb37cd-f94a-40d0-8b86-dd33725435cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_c0a3af50-0a30-4913-96f4-42c5a1164840">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_eaea59de-167b-4fa9-9438-6a89fa0d4899">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_d2ea0f61-c3ef-409a-a327-34302ec7662b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      id="F_9cdb322d-038e-4b83-9f04-b769e373b4db">&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;500,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_f75aa440-f87a-41c6-af5b-ff1f677b1427"
      decimals="0"
      id="F_d52618c4-af8c-4fc0-a1aa-41803ad969be"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
