<?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_cdf93e26-b191-4a96-aa17-4b7822f35a83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_64a55a34-dd3d-41e4-9bcd-a3f2a2c62325">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_40ffb499-f9d4-4ab3-bfb3-e98521e4cc71">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_55377652-a6a0-43bc-84aa-a01173fc84b0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_e092412a-fbc4-4519-9427-758a331d739a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_6eab6cd2-7a46-4b46-884d-310463bbda66">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_9f5693e7-8ac5-4659-b1ab-22fbae59ad26">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_f60ded92-5a4b-400f-bd96-2df5eb8565b6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_4c1124d3-0bf5-426e-a278-addb92602ad6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_0643e7a4-d698-445c-9975-8b4dd957d816">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      id="F_9f5871b5-ac1b-41fe-96c8-dfb735c72f33">&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,000,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_cdf93e26-b191-4a96-aa17-4b7822f35a83"
      decimals="-6"
      id="F_9e133f99-f24c-4f31-891a-86568a0f3593"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
