<?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_b378298d-a023-47d7-aff1-64c433533ae7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-03</startDate>
            <endDate>2026-02-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_dd759409-81d3-4587-98cc-465fa6d4e29b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_7a314677-5859-4b41-9509-ec8fcf0f4588">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_52a50ac8-4728-42e1-8afb-96b8da2f3d20">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_ed866972-657d-4d0e-92ea-d62b0398116a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_5a07269d-8642-4c2c-ada1-2db48c4a79b7">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_8dff6647-68b1-47ec-ad36-ab495f0f64de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_5ba5b17e-5a23-4cd0-addb-6e253786ad57">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_7245904f-9653-41ad-be82-6645aeff0e46">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_d6dc77d5-3da5-407d-89ce-a05b72f8223f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_b378298d-a023-47d7-aff1-64c433533ae7"
      id="F_db51b4b7-3445-4e5e-beaa-451402e01862">&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;831,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_b378298d-a023-47d7-aff1-64c433533ae7"
      decimals="0"
      id="F_b27bcfed-957d-4b9b-8bba-bed0c611efc6"
      unitRef="U_USD">831000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
