<?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_dc8e4362-4ea8-4b23-af0c-17798fe13406">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-26</startDate>
            <endDate>2025-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_e599bd36-d20d-4cbf-b98d-719e485efe88">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_8af6e5cc-76fe-4aa8-a518-00070d2cbf91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_8d6f2876-544c-443f-8f63-249f054a3d27">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_056e73d1-f5b3-4a88-8d86-7ed2a6e6f3b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_e7c884c0-fc7c-4afb-bbd2-470710e5244f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_b8791480-194c-46c8-9d68-db0c3f1a6bf6">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      id="F_39782de2-7932-4923-a2c4-2a3c5051674c">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;2,133,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_dc8e4362-4ea8-4b23-af0c-17798fe13406"
      decimals="0"
      id="F_adddec4e-d7e8-4d11-b8b8-18849d68ee2f"
      unitRef="U_USD">2133000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
