<?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_6138ac01-0196-427c-a75c-684746eb85d9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_5150cbbf-d2d8-4cfa-baf3-e7d0aacc021f">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_f1b88849-2133-47db-a70e-1ea5e4064aa9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_5b67bec3-ccf9-48bd-a30a-8cfa837e50f6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_db8de848-bbf9-4b7f-a3f5-ea8e3fb6e60e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_db555142-8b9d-4c35-8d1f-734dc13045fb">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_d46600b4-5110-42c7-b221-0ea8fc76e2c2">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_2e58d130-f46d-427f-9a6e-f6b4e62f8983">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_02b645c0-3769-423e-973f-0f40aa9f2540">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_aac4c1f2-9c06-4b76-b9cb-40304ec49f05">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6138ac01-0196-427c-a75c-684746eb85d9"
      id="F_3bbd2f76-fd1a-46bc-8acb-05889f0fb958">&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;995,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_6138ac01-0196-427c-a75c-684746eb85d9"
      decimals="-3"
      id="F_a7850acd-370a-4fe2-8846-b39e3e1eb44a"
      unitRef="U_USD">995000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
