<?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_aab911ea-9726-49be-afe7-1563c2671556">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-06-10</startDate>
            <endDate>2025-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_d83edc21-1c00-405b-99ac-136f5bae6d5b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_dcd8b9e7-6b1d-42a1-bb68-c1f2843bd9f6">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_fdafebfe-385c-4782-a233-3cc778ebe27d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_93733035-6d65-40b7-82b5-dca30efb9eae">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_001e7060-4058-40c3-9faa-cf25d15bcbdc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_f65cecad-4215-488b-9533-a3d8c2e7b7f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aab911ea-9726-49be-afe7-1563c2671556"
      id="F_696e8973-8916-4bf0-b83d-537f95bc49f7">&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;1,253,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_aab911ea-9726-49be-afe7-1563c2671556"
      decimals="0"
      id="F_47905e13-c7e9-4db6-b7f8-c40779a50667"
      unitRef="U_USD">1253000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
