<?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_cccbe684-fbb9-4177-9d93-a117653d2d5c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_2aaed141-b160-4098-9b6f-81229ac5711d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_2763fa08-d5d9-4abf-87c0-96c238315eb2">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_6dfd83c8-2e93-4e41-88a7-1dd04e7b10d7">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_a41ff92e-4f8f-44e5-9d18-9116d8661555">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_32f8409e-dd34-435f-9f57-807de23adb95">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_d808c7cc-79b0-4bff-b438-7fd26527bcb6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_e75ae101-79f5-4df6-be0e-39faffb1dce1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_7e2133df-d745-445a-836a-c0f76e20fd7a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_8b1611d0-997a-4fed-be8c-cc9f9c687b78">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      id="F_24cd6f74-edac-4ee9-b3fd-8afb24314c66">&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;2,986,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_cccbe684-fbb9-4177-9d93-a117653d2d5c"
      decimals="-3"
      id="F_20628a55-1161-4d80-98b0-a7bb4c7a69a5"
      unitRef="U_USD">2986000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
