<?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_31565b23-a3d3-4e15-80d5-b5cc5c3de98b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-25</startDate>
            <endDate>2025-11-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_2d6979da-bb0e-4e31-b8ba-d56621cc069b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_5e31124e-65b2-4d74-ac62-f86df6cbe872">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_40e98e1d-c5f9-428c-9052-91dacdda2d0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_dd617749-7d63-4453-99a4-ef25bf3e24dd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_51bf079b-461d-4977-b0a0-54dd6b6cadb0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_25333b22-8955-424b-a6e6-36163c5b789c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_2803d6f0-8047-4cea-93a3-57070ee0216d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_6b8c8683-06f3-4855-922e-49208f54284b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_b245b4ff-3b17-4a35-94bf-c1f09a8324c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      id="F_d41276a7-361d-46ed-90b2-8bf65edc07a5">&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,173,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_31565b23-a3d3-4e15-80d5-b5cc5c3de98b"
      decimals="0"
      id="F_c38b0757-aaf9-4115-b2af-669e1290cd9f"
      unitRef="U_USD">2173000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
