<?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_24233a34-61e2-47bc-bfa7-896e62961b88">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_ba0ca752-211c-4c4a-906d-33985d134583">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_f4705284-30a5-4ba9-8d87-8382a9c173f4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_1a971fd4-99a3-49d0-9c57-2d9e7d137c3c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_089fefe0-afc0-4de2-9829-1f6faf961815">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_4b203994-4990-43d9-a59d-df0de6048f5b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_8ef177c6-95d7-4bd2-be82-e84d361beb36">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_40589816-91d8-4b44-a9db-5ca700995e30">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_e6cbf3f7-3c34-4479-af2c-3bc6b835cafa">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_d3b9b727-7a29-42cb-8d3f-81ac41130306">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_24233a34-61e2-47bc-bfa7-896e62961b88"
      id="F_c99966d6-aa7d-42d2-9048-7aa19cce545d">&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;11,912,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_24233a34-61e2-47bc-bfa7-896e62961b88"
      decimals="-3"
      id="F_c9f6d4f6-ddc9-472b-aead-af436fd1aa91"
      unitRef="U_USD">11912000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
