<?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_90769bbf-8896-413f-9be1-579ad5ae51df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_1ed105ca-6d0b-456d-8c64-d97f40f586a0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_ae07af69-bec9-4c93-9f98-e96268428e42">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_76a43f5a-c162-4ad5-ac19-3c188c16a4e9">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_8a769e09-edb5-43b8-b0c7-aca67ea31cdb">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_e6fdc65a-43af-4c0d-bc5c-0938147fc68a">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_991b1239-33ab-4bd2-823b-37c93ca80832">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_298abeb0-c36e-4f9a-871b-d221027c7797">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_0619eea3-1f64-4886-8e6d-2ab08d840812">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_33bfefdf-6f28-4bb9-980b-789e261751d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_90769bbf-8896-413f-9be1-579ad5ae51df"
      id="F_e3d35874-d261-4953-9d67-2b63a757354d">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,927,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_90769bbf-8896-413f-9be1-579ad5ae51df"
      decimals="-3"
      id="F_762ffc6b-1617-4bed-8c76-043a6b83a994"
      unitRef="U_USD">3927000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
