<?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_a12bd1a4-25ee-40a5-a0c3-1113de002b1f">
        <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:RegnFileNb
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_62054be2-b185-41a4-91af-5e5e8d672cd4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_b121aa0f-60bf-4889-9a7d-691ecc295240">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_12ebb8ca-e2d1-489c-becf-088bc1b3b289">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_372b8046-a7cf-4e47-868b-55aabd74d4cb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_a0becaf8-07f7-4458-b31d-fb6db8bf5eca">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_8cb922b1-2478-4c7d-8e62-6eda212c6145">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      id="F_a0b0a7c2-a11d-4478-9201-0431d6154389">&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,293,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_a12bd1a4-25ee-40a5-a0c3-1113de002b1f"
      decimals="0"
      id="F_5dea018a-815d-4c59-aeaf-704622206c04"
      unitRef="U_USD">2293000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
