<?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_39d1885b-f818-4512-a9f4-b072caf81d71">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-29</startDate>
            <endDate>2026-01-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_cac98924-b331-4570-9d0e-afbf7b58cafc">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_56273409-888e-4e72-ab0d-097830a3de97">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_4137167b-5144-4385-b638-7393c8dc0522">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_21f79943-ed6c-4c29-a3ea-033945af2b23">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_6c22270e-8429-421e-88aa-8a7cf92236ad">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_293df3c9-2535-41e2-9a3d-ff7999591de8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_ecacc615-6a04-45aa-abc2-0db3c3e97b74">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_021f48cf-9d83-440e-bb82-8ec39d1ed6aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_552c1d9e-d0f7-41bb-98d3-46db3d729f46">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_39d1885b-f818-4512-a9f4-b072caf81d71"
      id="F_50322c14-e5b5-47c6-8313-2188597f16fc">&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;1,824,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_39d1885b-f818-4512-a9f4-b072caf81d71"
      decimals="0"
      id="F_98f18066-14d2-466c-bb9f-02f8e201a09f"
      unitRef="U_USD">1824000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
