<?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_a9298e71-2d5d-4f7f-a181-133fecceb1f9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_cacd8b55-5a9d-492f-b969-670a17f524dd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_6437ee76-43a5-404a-9bdd-cc81bc8c8c24">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_0e43e544-1aea-4627-8826-224a815d9642">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_2ef064a6-69f5-423b-a9e0-3bdfe90d28f4">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_2c514fff-faa4-4a7f-b81e-fc4294cc9716">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_978fbc53-ab36-4ed4-beac-fa6428b6e15a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_1a6fd254-5739-424b-88fb-cb9c6f2bafa3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_4b0bece1-426e-442b-a519-dcf193ae3dc8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_046fcd44-9653-4ccc-a14c-7d4c1bd1a19c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      id="F_5eb96f52-8e11-4a73-ada8-e8b71a7a7089">&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;9,718,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_a9298e71-2d5d-4f7f-a181-133fecceb1f9"
      decimals="-3"
      id="F_15c2b909-516f-4d55-93f8-087cb3f33ca5"
      unitRef="U_USD">9718000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
