<?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_46c32595-7602-478a-8405-4e39e7cd1d70">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-14</startDate>
            <endDate>2026-08-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_f31f59c5-515c-4589-8c6c-4e1970be9328">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_ac0975ea-ae5a-49c2-993a-87344fb08f42">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_d7db116a-bdb1-48a6-b13b-57ad83a4f2f2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_8a6ef184-9a12-4573-a04a-692a7c94978b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_784b310e-11bc-4823-b10f-25c4fcff3405">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_2a6022de-222d-4182-bfcf-cc2570508d8f">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_8e66fd8e-013c-448b-8fc8-e978d515eee8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_ba086e9e-b974-4368-a6a6-49fa5a8d74dd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_0ad75336-e017-4452-aad5-e20476bdaace">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_46c32595-7602-478a-8405-4e39e7cd1d70"
      id="F_513485ea-6477-4598-9ae4-9e59a309d8cc">&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;590,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_46c32595-7602-478a-8405-4e39e7cd1d70"
      decimals="-3"
      id="F_278171fd-c56c-4cbf-922d-2ec96778e372"
      unitRef="U_USD">590000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
