<?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_d4ccd229-1434-4aec-abe3-a6786de8b608">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-27</startDate>
            <endDate>2026-01-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_167ae5cc-6aea-4075-a947-b65a7ad4a169">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_003f5475-405a-4566-b44e-d068bf55416d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_a58ad9e1-9794-4daa-8a2e-fdd9e9179515">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_55bf4856-2c96-4ce0-a6df-9081c3835498">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_4bcc52e6-ff30-4a22-8432-0d8643c30fe6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_5692c248-a7dc-481a-b94b-ca9912b5d298">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_af03dc87-674d-4dff-8b70-f01143aaed68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_f796d775-28e7-42d7-9e14-810743d8d7e2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_c369e1a4-4e64-4c84-96e1-698504a19ec7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_d4ccd229-1434-4aec-abe3-a6786de8b608"
      id="F_8439f06c-ecfc-4b3e-9f6a-b098546eea1b">&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;850,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_d4ccd229-1434-4aec-abe3-a6786de8b608"
      decimals="0"
      id="F_ba6802b0-bea9-42b7-a073-eebec768c022"
      unitRef="U_USD">850000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
