<?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_98ce4aeb-6af3-4541-a6f2-6362ace14b04">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-28</startDate>
            <endDate>2025-10-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_97a26c2c-2759-43fe-a5cc-7f38318bd5d7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_d435af89-f990-48b1-b7e2-9ea5aa4ade93">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_714052cd-5998-4b60-af11-c3ceaa039d86">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_6c3c72ed-f4fa-4e22-8807-e69d14e786eb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_dd98ea37-7d86-46db-8518-4d13c32aa13b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_31c64077-f3d8-4d35-95d7-2cceae834fe3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_6f60d9c2-4d2f-4d8c-ba8e-e7d620431a3d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_a05b8ec6-c95f-4e1e-af11-8d2dbf998cfc">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_ad57ec5e-33a5-4e62-b64e-d0c512a43039">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      id="F_7865fca5-47b6-4d26-8686-15e1c96a181f">&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,409,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_98ce4aeb-6af3-4541-a6f2-6362ace14b04"
      decimals="0"
      id="F_ab252197-eaeb-4d13-8443-8e8fe1b87b27"
      unitRef="U_USD">2409000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
