<?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_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-06</startDate>
            <endDate>2026-03-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_65cf3352-b711-45bc-89f7-c949dd0a64e8">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_4f1e483d-88be-446d-bc74-680dd83fdd6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_61aa0dfb-5b70-436c-8ab8-826afd1a63d8">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_8d468713-4863-4d13-a1bb-710a57a72cde">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_710242bb-f409-4ac7-a8fc-17847a60ade5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_d81f0074-e51b-4bac-98a9-10448fabbfca">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_0a2b5c6e-a33f-43f0-80ee-8d14b07800dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_3cda8e85-2b58-49d1-b127-d594e9da2381">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_4118a7e5-2ea6-40d9-ad67-df530f9c242f">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      id="F_5a34b2d9-caac-4702-b0b2-4f2fcb9ea8a4">&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;6,424,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_fb3dce57-7c1a-4ca0-8e6f-1c77891c01f1"
      decimals="0"
      id="F_bbd7d54c-7571-413e-9742-cbb2aae66d11"
      unitRef="U_USD">6424000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
