<?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_c2b3594f-ec54-4460-ba51-d248bbc31ac0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_af71f7ef-594b-473c-b966-ec6a60ac4873">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_7e3d6443-2d3e-416a-b2e5-4f71205fbdde">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_b93817ea-3205-4e72-84b4-61e076d24530">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_76875d55-fc09-411b-bde4-e74e30dd4070">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_ed8b7b03-3e33-433d-9b3a-8e2784654fbe">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_af7bce24-540b-4d40-b2d2-db814360d01e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_3acb9b68-0755-4268-80e6-f541b38fe34b">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_f7692f9c-b2ff-4d52-abef-4b4b5aa4376d">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_1b2dc04b-5e13-47f3-a678-372351d097c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      id="F_47ed270d-3519-4b49-83e0-ec3aeeefc0b0">&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;350,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_c2b3594f-ec54-4460-ba51-d248bbc31ac0"
      decimals="-3"
      id="F_bafea646-1f58-4917-a230-839f303270e3"
      unitRef="U_USD">350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
