<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_3528993c-a6e2-4a8b-903d-188918eccec7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_d373996a-7916-4c60-af5e-e73fd224862d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_a0fde8e4-46d2-480c-8eac-7d242809611d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_caa292ed-907d-47a6-a5dc-7941f5115e37">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_b0b200bd-37c0-4ba0-a74c-0c4c0ee90f76">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_fb7fcd25-e2cb-4e9d-8082-856e5c752b92">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_8303e5fa-a87c-496c-87e8-336b8f7a343c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_b6091b21-0d2e-48ca-9d29-c752e3ba0359">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_41a9fbda-80dd-4bce-a440-2bc5d5965451">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_838d2372-aa11-4f50-8f66-cca392a616bb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3528993c-a6e2-4a8b-903d-188918eccec7"
      id="F_eba6fe4f-e491-4936-b093-9575101b63ce">&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,866,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_3528993c-a6e2-4a8b-903d-188918eccec7"
      decimals="-3"
      id="F_09999345-66f7-41e1-97bd-2bbf933dd6b6"
      unitRef="U_USD">1866000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
