<?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_baa0544d-de9b-47f0-a6db-74cb9206cc6a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_3a8c0a2c-c5f3-4e9e-b374-50630b29b5f9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_36431693-5a6f-49a8-93b3-479447b384aa">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_4d58705b-3196-46f0-88dd-25df41a74ce8">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_4dfe098d-39a9-4d4c-8986-38483fae4146">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_9f0fb7b6-c33d-4415-a733-6e1433ce95ed">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_6dcf2be1-79c9-4070-a85c-d4ba95d5d63e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_80b0e13e-7163-4838-8f3c-5fb5bf9c4740">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_ce33cdff-8045-4433-8b13-c602a2d46b79">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_932e8b89-9314-4416-9e8b-a901320eaf9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      id="F_d8cbc85f-a052-46f9-a8fc-146ba9f902e3">&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,893,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_baa0544d-de9b-47f0-a6db-74cb9206cc6a"
      decimals="-3"
      id="F_faa72c84-6100-4b6a-a130-bc03f0a2125a"
      unitRef="U_USD">1893000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
