<?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_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663">
        <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_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_3b3c2d8b-12e1-46e7-9f59-ee6b50f3bd42">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_c726e05d-ad32-4f18-8814-0e220781004d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_4cb203d3-14cf-412f-8218-b462956dc5d5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_1d121b2e-e7cf-4600-9d29-297b9f9c0c5f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_47857ad5-be97-4363-b53b-2fc6713482df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_63184ae5-bd3f-4402-9982-9cdeaa7364db">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_71a15328-2fb4-44e7-a9ba-8fe4bdace4ae">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_11a70107-7dc0-4b93-a915-d0179f887920">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_8987e43e-aae2-4ccd-bb56-758569dd2f35">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      id="F_74a9ce01-7b68-4c04-9c79-87d9f8f0ea7b">&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;382,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_9c80bd11-5ae4-4d8f-b3d6-ae266c38f663"
      decimals="0"
      id="F_f9b7444e-4dd4-4bd8-a3d6-8bb4a5c10b91"
      unitRef="U_USD">382000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
