<?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_ca99ad0e-59b5-44c9-8259-709d354ce8a1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_b6f65980-e011-4f4d-a4e2-88a8cd0bf15c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_0b75743f-c7b2-44fe-8187-2b9bd8379151">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_e8fc11e9-b365-4564-9323-e16c68cc323d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_ff7d5f51-9630-45be-b833-b6c8fbba70c6">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_a6f08275-ca95-47b1-b99c-b9cb4a275895">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_c3172ef7-ab4d-4257-9f11-c3528a331f70">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_6100b9d2-5c6a-4d3e-9bfe-2266bfcaba80">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_1e423d1b-811b-43ea-9309-b1122db309fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_f0cd0b6c-b40c-4d40-8664-18b235b081cf">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      id="F_b2319a18-0545-47d4-ac6c-2756b478891e">&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;572,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_ca99ad0e-59b5-44c9-8259-709d354ce8a1"
      decimals="-3"
      id="F_ce3d21eb-d079-4a25-b1ef-e3c0659d92cc"
      unitRef="U_USD">572000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
