<?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_14b3f594-1607-46b5-bc1f-f404d1a3ba89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-20</startDate>
            <endDate>2025-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_908f2070-3a76-4c60-8ef8-0debf0ad84f0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_6241ef8c-0514-49ff-8ec5-1751a33d072d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_fbb5972d-8eae-48bf-bbce-b3151cb05e17">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_6af90cf9-548d-41b5-98b3-1523fe21e8c7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_2bf58572-cd16-4779-9357-10d83b374b39">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_bd13ceef-3ad2-4020-beec-b6cd5d6b570e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      id="F_22af0165-d93c-4eaf-abd8-22b02994dae8">&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,306,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_14b3f594-1607-46b5-bc1f-f404d1a3ba89"
      decimals="0"
      id="F_0810d765-2279-45e7-9708-5a546b2b167a"
      unitRef="U_USD">1306000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
