<?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_9db268c4-fdb4-430f-b67f-70ef12b533f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_b73fd56f-2b88-4114-b2ba-bcfb304c3ede">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_1ffc1d97-d4ec-4146-9ffe-75fd244a1277">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_0e93fc72-31f5-49f4-83b1-2a652fb7d870">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_9b4a3744-5b48-4508-ab2d-60b53c00ebe8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_8e00b6fe-4d56-4bf5-8ccb-3cb58508f340">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_a95866ac-ce09-48ff-bcca-5bf4dcb57f49">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_0b2fcb95-1c76-44d0-9542-e3fb8854262b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_f6d76429-b08e-4e00-b4d9-07b4f9d33922">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_34a3f760-b0c4-4afc-a7a9-1ce03d9cbbbe">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      id="F_1f3e2026-ffd9-477a-a790-878444157f61">&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,685,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_9db268c4-fdb4-430f-b67f-70ef12b533f3"
      decimals="-3"
      id="F_e264de9e-c22c-4409-9b57-adbbf46ff0f1"
      unitRef="U_USD">1685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
