<?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_9300087a-b05b-477c-8355-be662e30f031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_fb6db0ef-dbbf-41d4-bb36-424c9969c0df">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_212f8567-aa12-4f24-8463-e828d58ceab0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_4d881dbe-56af-46bd-b980-f5e73298178b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_b5f00f95-e021-4278-bc0c-9b8319d5a730">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_9f5dab92-2e85-478d-912c-c0c74d2ebd94">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_1d8a49e0-e85e-4e82-9a1c-f02051fec2ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_83a6e1ec-760d-48d5-a30d-571d88ca19e0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_5bc4bb03-be0d-4fc5-b205-dc1cefe05dfa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_35f2ca65-eb68-4ea6-9857-0bffe17d31d9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9300087a-b05b-477c-8355-be662e30f031"
      id="F_447695e0-1dc1-4022-8847-8e061247a3b2">&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,790,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_9300087a-b05b-477c-8355-be662e30f031"
      decimals="-3"
      id="F_0059a96c-93bf-4b19-8a43-be1cab2f6d3d"
      unitRef="U_USD">1790000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
