<?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_8fa2c028-266b-4b51-a788-09541513acf8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_a838d4e8-937d-46bb-8e06-72da09fb94f8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_c22ae579-16c3-49c6-aacd-8b775c768ea8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_bd6e6a7d-5957-4b57-a5f9-6f4f76e2ba19">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_ed5f69da-1d1a-471e-926b-223067a754ed">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_903a2a0b-adae-404d-ad15-5ede8b7f96b7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_b5e527e9-d678-4a64-b979-214809e8529f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_fc2dcacf-6393-4b7e-a522-5b685dca6ce8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_85b7f335-769f-411f-92b1-15c958dcf85a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_4c2e4ec8-b5fa-4774-8604-32e209a65dc4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8fa2c028-266b-4b51-a788-09541513acf8"
      id="F_ca280ed3-5a92-4db5-8e91-ada39106e654">&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;375,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_8fa2c028-266b-4b51-a788-09541513acf8"
      decimals="-3"
      id="F_5b81bbb6-8f18-4c28-8e30-715b06b3c457"
      unitRef="U_USD">375000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
