<?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_003ac5fc-af0b-4e7f-860d-cec0f757c5be">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_797752db-90c2-4506-ad22-d941d53ad2b5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_8a86691a-46bc-4d96-bcfa-c1cd15b982a0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_9ce89096-aa6c-4061-8a52-0afc89720074">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_d099a91b-75dc-4955-b7e1-5acc84f72066">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_795d3ea6-a4fe-42f9-8108-a9434962babc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_f41fce5a-97cb-489e-b6d0-3646363885a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_5a6431c6-8936-4848-b68b-bc7869570273">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_1d7cbcbc-0fb9-4766-8e9f-24825ccc27d2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_03cf4f4c-34aa-4342-8cc4-7fff18d9c3dd">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      id="F_fd6ba490-a20d-46b6-92eb-86e4ca1fe434">&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;167,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_003ac5fc-af0b-4e7f-860d-cec0f757c5be"
      decimals="-3"
      id="F_5535568e-cdad-4e1f-b232-a555a64adbcf"
      unitRef="U_USD">167000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
